From 6756edb6b2b6c2c8408795a432a4491d47f6e095 Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Fri, 25 Sep 2026 11:41:11 -0700 Subject: [PATCH 01/21] feat: support 4.2-dev --- build.gradle | 4 +- dash-sdk-bindings/Cargo.lock | 333 +- dash-sdk-bindings/cbindgen.toml | 14 +- dash-sdk-bindings/rust-toolchain.toml | 2 +- dash-sdk-bindings/src/fermented.rs | 10227 +--------------- dash-sdk-bindings/src/lib.rs | 7 +- dash-sdk-java/build.gradle | 21 +- dash-sdk-java/src/main/cpp/clone.h | 164 +- dash-sdk-java/src/main/swig/document.i | 4 +- .../src/main/swig/identity_public_key.i | 54 +- dash-sdk-java/src/main/swig/ignore.i | 482 +- dash-sdk-java/src/main/swig/root.i | 1 + platform-mobile/Cargo.lock | 335 +- platform-mobile/src/clone.rs | 28 + platform-mobile/src/config.rs | 14 +- platform-mobile/src/data_contracts.rs | 3 +- platform-mobile/src/fetch_document.rs | 4 +- platform-mobile/src/provider.rs | 64 +- platform-mobile/src/put.rs | 14 +- platform-mobile/src/put_test.rs | 2 + platform-mobile/src/sdk.rs | 15 +- platform-mobile/src/state_transition.rs | 10 +- 22 files changed, 951 insertions(+), 10851 deletions(-) diff --git a/build.gradle b/build.gradle index 48ddce10..aa6264e4 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ buildscript { - ext.version = '4.0.1' + ext.version = '4.2.0-SNAPSHOT' ext.kotlin_version = '2.1.20' - ext.dashj_version = '22.0.1' + ext.dashj_version = '22.0.5' repositories { google() // Required for Android library and application projects mavenCentral() diff --git a/dash-sdk-bindings/Cargo.lock b/dash-sdk-bindings/Cargo.lock index 408ddcb8..b704a8b8 100644 --- a/dash-sdk-bindings/Cargo.lock +++ b/dash-sdk-bindings/Cargo.lock @@ -99,6 +99,16 @@ version = "1.0.100" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" +[[package]] +name = "app-connect-contract" +version = "4.2.0-beta.4" +dependencies = [ + "platform-value", + "platform-version", + "serde_json", + "thiserror 2.0.18", +] + [[package]] name = "arc-swap" version = "1.8.0" @@ -789,7 +799,7 @@ dependencies = [ [[package]] name = "dapi-grpc" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "dash-platform-macros", "futures-core", @@ -842,16 +852,18 @@ dependencies = [ [[package]] name = "dash-async" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ + "futures", "thiserror 2.0.18", "tokio", + "tokio-util", "tracing", ] [[package]] name = "dash-context-provider" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "dash-async", "dpp", @@ -874,35 +886,52 @@ dependencies = [ [[package]] name = "dash-network" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ - "bincode", - "bincode_derive", "cbindgen 0.29.4", + "grovedb-bincode", + "grovedb-bincode-derive", "serde", ] [[package]] name = "dash-network-seeds" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ - "dash-network 0.44.0", + "dash-network 0.45.0", ] [[package]] name = "dash-platform-macros" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "heck 0.5.0", "quote", "syn 2.0.114", ] +[[package]] +name = "dash-platform-queries" +version = "4.2.0-beta.4" +dependencies = [ + "dapi-grpc", + "dash-context-provider", + "dash-platform-macros", + "dpp", + "drive", + "drive-proof-verifier", + "hex", + "serde", + "serde_json", + "thiserror 2.0.18", + "tracing", +] + [[package]] name = "dash-sdk" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "arc-swap", "async-trait", @@ -914,6 +943,7 @@ dependencies = [ "dash-context-provider", "dash-network-seeds", "dash-platform-macros", + "dash-platform-queries", "derive_more 1.0.0", "dotenvy", "dpp", @@ -983,21 +1013,21 @@ dependencies = [ [[package]] name = "dashcore" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ "anyhow", "base64-compat", "bech32 0.9.1", - "bincode", - "bincode_derive", "bitvec", "blake3", "blsful", - "dash-network 0.44.0", - "dashcore-private 0.44.0", - "dashcore_hashes 0.44.0", + "dash-network 0.45.0", + "dashcore-private 0.45.0", + "dashcore_hashes 0.45.0", "ed25519-dalek", + "grovedb-bincode", + "grovedb-bincode-derive", "hex", "hex_lit", "rustversion", @@ -1014,8 +1044,8 @@ source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277 [[package]] name = "dashcore-private" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" [[package]] name = "dashcore-rpc" @@ -1032,10 +1062,10 @@ dependencies = [ [[package]] name = "dashcore-rpc" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ - "dashcore-rpc-json 0.44.0", + "dashcore-rpc-json 0.45.0", "hex", "jsonrpc", "serde", @@ -1060,13 +1090,13 @@ dependencies = [ [[package]] name = "dashcore-rpc-json" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ - "bincode", - "dashcore 0.44.0", + "dashcore 0.45.0", + "grovedb-bincode", "hex", - "key-wallet 0.44.0", + "key-wallet 0.45.0", "serde", "serde_json", "serde_repr", @@ -1085,17 +1115,17 @@ dependencies = [ [[package]] name = "dashcore_hashes" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ - "bincode", - "dashcore-private 0.44.0", + "dashcore-private 0.45.0", + "grovedb-bincode", "serde", ] [[package]] name = "dashpay-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -1105,12 +1135,15 @@ dependencies = [ [[package]] name = "data-contracts" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ + "app-connect-contract", "dashpay-contract", + "document-history-contract", "dpns-contract", "keyword-search-contract", "masternode-reward-shares-contract", + "moderation-charters-contract", "platform-value", "platform-version", "serde_json", @@ -1205,6 +1238,16 @@ dependencies = [ "syn 2.0.114", ] +[[package]] +name = "document-history-contract" +version = "4.2.0-beta.4" +dependencies = [ + "platform-value", + "platform-version", + "serde_json", + "thiserror 2.0.18", +] + [[package]] name = "dotenvy" version = "0.15.7" @@ -1213,7 +1256,7 @@ checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" [[package]] name = "dpns-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -1223,32 +1266,33 @@ dependencies = [ [[package]] name = "dpp" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "anyhow", "async-trait", "base64 0.22.1", "bech32 0.11.1", - "bincode", "bs58", "byteorder", "chrono", "chrono-tz", "ciborium", - "dashcore 0.44.0", - "dashcore-rpc 0.44.0", + "dashcore 0.45.0", + "dashcore-rpc 0.45.0", "data-contracts", "derive_more 1.0.0", "dpp-json-convertible-derive", "env_logger", "ferment-macro", "getrandom 0.2.17", + "grovedb-bincode", "hex", "indexmap 2.13.0", "integer-encoding", "itertools 0.13.0", - "key-wallet 0.44.0", + "key-wallet 0.45.0", "lazy_static", + "libm", "nohash-hasher", "num_enum 0.7.5", "once_cell", @@ -1270,7 +1314,7 @@ dependencies = [ [[package]] name = "dpp-json-convertible-derive" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "proc-macro2", "quote", @@ -1279,17 +1323,18 @@ dependencies = [ [[package]] name = "drive" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ - "bincode", "byteorder", "derive_more 1.0.0", "dpp", "ferment-macro", "grovedb", + "grovedb-bincode", "grovedb-costs", "grovedb-epoch-based-storage-flags", "grovedb-path", + "grovedb-query", "grovedb-version", "hex", "indexmap 2.13.0", @@ -1305,15 +1350,15 @@ dependencies = [ [[package]] name = "drive-proof-verifier" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ - "bincode", "dapi-grpc", "dash-context-provider", "derive_more 1.0.0", "dpp", "drive", "ferment-macro", + "grovedb-bincode", "hex", "indexmap 2.13.0", "platform-serialization", @@ -1745,12 +1790,12 @@ dependencies = [ [[package]] name = "grovedb" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", - "bincode_derive", "blake3", + "grovedb-bincode", + "grovedb-bincode-derive", "grovedb-bulk-append-tree", "grovedb-costs", "grovedb-dense-fixed-sized-merkle-tree", @@ -1766,25 +1811,47 @@ dependencies = [ "thiserror 2.0.18", ] +[[package]] +name = "grovedb-bincode" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce912028682ecc5870a5ad609ea456b76b0bf4ec1ba1eb649400b64ff73a7782" +dependencies = [ + "grovedb-bincode-derive", + "serde", + "unty", +] + +[[package]] +name = "grovedb-bincode-derive" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9eaff4e961dcb3e7e55c34c8c6982249036e5aaa19e55f6dab94ebcd4896b03a" +dependencies = [ + "virtue 0.0.18", +] + [[package]] name = "grovedb-bulk-append-tree" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", "blake3", + "grovedb-bincode", "grovedb-costs", "grovedb-dense-fixed-sized-merkle-tree", "grovedb-merkle-mountain-range", "grovedb-query", + "grovedb-version", "hex", + "integer-encoding", "thiserror 2.0.18", ] [[package]] name = "grovedb-costs" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ "integer-encoding", "intmap", @@ -1793,24 +1860,26 @@ dependencies = [ [[package]] name = "grovedb-dense-fixed-sized-merkle-tree" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", "blake3", + "grovedb-bincode", "grovedb-costs", "grovedb-query", + "grovedb-version", "thiserror 2.0.18", ] [[package]] name = "grovedb-element" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", - "bincode_derive", + "grovedb-bincode", + "grovedb-bincode-derive", "grovedb-path", + "grovedb-query", "grovedb-version", "hex", "integer-encoding", @@ -1819,8 +1888,8 @@ dependencies = [ [[package]] name = "grovedb-epoch-based-storage-flags" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ "grovedb-costs", "hex", @@ -1831,14 +1900,14 @@ dependencies = [ [[package]] name = "grovedb-merk" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", - "bincode_derive", "blake3", "byteorder", "ed", + "grovedb-bincode", + "grovedb-bincode-derive", "grovedb-costs", "grovedb-element", "grovedb-path", @@ -1853,30 +1922,31 @@ dependencies = [ [[package]] name = "grovedb-merkle-mountain-range" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", "blake3", + "grovedb-bincode", "grovedb-costs", + "grovedb-version", ] [[package]] name = "grovedb-path" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ "hex", ] [[package]] name = "grovedb-query" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", "byteorder", "ed", + "grovedb-bincode", "hex", "indexmap 2.13.0", "integer-encoding", @@ -1885,17 +1955,17 @@ dependencies = [ [[package]] name = "grovedb-version" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ "thiserror 2.0.18", - "versioned-feature-core 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "versioned-feature-core", ] [[package]] name = "grovedb-visualize" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ "hex", "itertools 0.14.0", @@ -2479,16 +2549,16 @@ dependencies = [ [[package]] name = "key-wallet" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ "async-trait", "base58ck", "bip39", "bitflags 2.10.0", - "dashcore 0.44.0", - "dashcore-private 0.44.0", - "dashcore_hashes 0.44.0", + "dashcore 0.45.0", + "dashcore-private 0.45.0", + "dashcore_hashes 0.45.0", "getrandom 0.2.17", "hex", "secp256k1", @@ -2502,7 +2572,7 @@ dependencies = [ [[package]] name = "keyword-search-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -2528,6 +2598,12 @@ version = "0.2.180" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc" +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + [[package]] name = "linux-raw-sys" version = "0.4.15" @@ -2581,7 +2657,7 @@ dependencies = [ [[package]] name = "masternode-reward-shares-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -2637,6 +2713,16 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "moderation-charters-contract" +version = "4.2.0-beta.4" +dependencies = [ + "platform-value", + "platform-version", + "serde_json", + "thiserror 2.0.18", +] + [[package]] name = "multiexp" version = "0.4.2" @@ -2723,13 +2809,13 @@ checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" [[package]] name = "num-derive" -version = "0.4.2" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" +checksum = "e4e98dc3b890f6c23a0f9d3d491a2823d0dea0fa656302a13dd225fa924112a8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.114", + "syn 3.0.6", ] [[package]] @@ -2992,11 +3078,13 @@ dependencies = [ [[package]] name = "platform-encryption" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "aes", "cbc", - "dashcore 0.44.0", + "hmac", + "secp256k1", + "sha2", "thiserror 1.0.69", ] @@ -3047,15 +3135,15 @@ dependencies = [ [[package]] name = "platform-serialization" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ - "bincode", + "grovedb-bincode", "platform-version", ] [[package]] name = "platform-serialization-derive" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "proc-macro2", "quote", @@ -3065,14 +3153,14 @@ dependencies = [ [[package]] name = "platform-value" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "base64 0.22.1", - "bincode", "bs58", "cbindgen 0.26.0", "ciborium", "ferment-macro", + "grovedb-bincode", "hex", "indexmap 2.13.0", "platform-serialization", @@ -3086,19 +3174,19 @@ dependencies = [ [[package]] name = "platform-version" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ - "bincode", "ferment-macro", + "grovedb-bincode", "grovedb-version", "once_cell", "thiserror 2.0.18", - "versioned-feature-core 1.0.0 (git+https://github.com/dashpay/versioned-feature-core)", + "versioned-feature-core", ] [[package]] name = "platform-versioning" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "proc-macro2", "quote", @@ -3384,7 +3472,7 @@ dependencies = [ [[package]] name = "rs-dapi-client" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "backon", "chrono", @@ -3771,14 +3859,15 @@ checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2" [[package]] name = "simple-signer" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "async-trait", "base64 0.22.1", - "bincode", "dpp", + "grovedb-bincode", "hex", "tracing", + "zeroize", ] [[package]] @@ -3922,6 +4011,17 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "syn" +version = "3.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "sync_wrapper" version = "1.0.2" @@ -3960,8 +4060,8 @@ dependencies = [ [[package]] name = "tenderdash-abci" -version = "1.5.1" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.5.1#fae47294618125fa9d69150e8a7a5b607af6867c" +version = "1.8.0" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" dependencies = [ "bytes", "hex", @@ -3975,8 +4075,8 @@ dependencies = [ [[package]] name = "tenderdash-proto" -version = "1.5.1" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.5.1#fae47294618125fa9d69150e8a7a5b607af6867c" +version = "1.8.0" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" dependencies = [ "bytes", "chrono", @@ -3993,8 +4093,8 @@ dependencies = [ [[package]] name = "tenderdash-proto-compiler" -version = "1.5.1" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.5.1#fae47294618125fa9d69150e8a7a5b607af6867c" +version = "1.8.0" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" dependencies = [ "fs_extra", "prost-build", @@ -4136,7 +4236,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "token-history-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -4690,11 +4790,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "898c0ad500fdb1914df465a2c729fce33646ef65dfbbbd16a6d8050e0d2404df" -[[package]] -name = "versioned-feature-core" -version = "1.0.0" -source = "git+https://github.com/dashpay/versioned-feature-core#560157096c8405a46ce0f21a2e7e1bd11d6625b4" - [[package]] name = "virtue" version = "0.0.17" @@ -4737,7 +4832,7 @@ dependencies = [ [[package]] name = "wallet-utils-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -5147,7 +5242,7 @@ checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" [[package]] name = "withdrawals-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "num_enum 0.5.11", "platform-value", diff --git a/dash-sdk-bindings/cbindgen.toml b/dash-sdk-bindings/cbindgen.toml index e3e4f8b7..beb43818 100644 --- a/dash-sdk-bindings/cbindgen.toml +++ b/dash-sdk-bindings/cbindgen.toml @@ -6,6 +6,18 @@ tab_width = 4 documentation_style = "c" style = "tag" include_guard = "dash_sdk_bindings_h" +after_includes = """ +#ifndef SWIG +struct dpp_identity_identity_public_key_KeyID; +enum class dpp_identity_identity_public_key_purpose_Purpose; +enum class dpp_identity_identity_public_key_security_level_SecurityLevel; +enum class dpp_identity_identity_public_key_key_type_KeyType; +using KeyID = dpp_identity_identity_public_key_KeyID; +using Purpose = dpp_identity_identity_public_key_purpose_Purpose; +using SecurityLevel = dpp_identity_identity_public_key_security_level_SecurityLevel; +using KeyType = dpp_identity_identity_public_key_key_type_KeyType; +#endif +""" [parse] parse_deps = true @@ -17,4 +29,4 @@ prefix_with_name = false enum_class = true [export] -exclude = ["__android_log_write"] \ No newline at end of file +exclude = ["__android_log_write"] diff --git a/dash-sdk-bindings/rust-toolchain.toml b/dash-sdk-bindings/rust-toolchain.toml index 5234c1d5..69e1244b 100644 --- a/dash-sdk-bindings/rust-toolchain.toml +++ b/dash-sdk-bindings/rust-toolchain.toml @@ -2,4 +2,4 @@ # Keep in sync with ../platform-mobile/rust-toolchain.toml and ../../platform/rust-toolchain.toml. # All checkouts share one cargo target dir (~/.cargo/config.toml) and rs-sdk's cdylib target # is emitted as an unhashed libdash_sdk.rlib, so a different toolchain here clobbers it (E0514). -channel = "1.92" +channel = "1.98" diff --git a/dash-sdk-bindings/src/fermented.rs b/dash-sdk-bindings/src/fermented.rs index d2b05370..5f60fbab 100644 --- a/dash-sdk-bindings/src/fermented.rs +++ b/dash-sdk-bindings/src/fermented.rs @@ -1,10226 +1 @@ -#[allow( - clippy::let_and_return, - clippy::suspicious_else_formatting, - clippy::redundant_field_names, - dead_code, - non_camel_case_types, - non_snake_case, - non_upper_case_globals, - redundant_semicolons, - unreachable_patterns, - unused_braces, - unused_imports, - unused_parens, - unused_qualifications, - unused_unsafe, - unused_variables -)] -pub mod types { - pub mod rs_dapi_client { - use crate as dash_sdk_bindings; - - pub mod executor { use crate as dash_sdk_bindings; } - - pub mod address_list { use crate as dash_sdk_bindings; } - - pub mod transport { use crate as dash_sdk_bindings; } - - pub mod request_settings { use crate as dash_sdk_bindings; } - - pub mod connection_pool { use crate as dash_sdk_bindings; } - - pub mod dapi_client { use crate as dash_sdk_bindings; } - } - - pub mod drive { - use crate as dash_sdk_bindings; - - #[cfg(any(feature = "server", feature = "verify", feature = "fixtures-and-mocks"))] - pub mod util { - use crate as dash_sdk_bindings; - - #[cfg(any(test, feature = "server", feature = "fixtures-and-mocks"))] - pub mod test_helpers { - use crate as dash_sdk_bindings; - - #[cfg(any(test, feature = "fixtures-and-mocks"))] - pub mod test_utils { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod batch { - use crate as dash_sdk_bindings; - - pub mod drive_op_batch { - use crate as dash_sdk_bindings; - - pub mod drive_methods { - use crate as dash_sdk_bindings; - - pub mod apply_drive_operations { use crate as dash_sdk_bindings; } - - pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings; } - } - - pub mod token { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod operations { - use crate as dash_sdk_bindings; - - pub mod commit_transaction { use crate as dash_sdk_bindings; } - - pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings; } - - pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings; } - - pub mod drop_cache { use crate as dash_sdk_bindings; } - - pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings; } - - pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings; } - - pub mod rollback_transaction { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod common { - use crate as dash_sdk_bindings; - - pub mod encode { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod grove_operations { - use crate as dash_sdk_bindings; - - pub mod grove_insert_empty_tree { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_get_big_sum_tree_total_value { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_delete { use crate as dash_sdk_bindings; } - - pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings; } - - pub mod grove_insert { use crate as dash_sdk_bindings; } - - pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings; } - - pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings; } - - pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings; } - - pub mod grove_get_path_query { use crate as dash_sdk_bindings; } - - pub mod batch_insert_if_changed_value { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_get_raw_optional_item { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_remove_raw { use crate as dash_sdk_bindings; } - - pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings; } - - pub mod batch_insert_empty_count_tree { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_get { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_insert_empty_sum_tree { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_get_sum_tree_total_value { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_insert_if_not_exists_return_existing_element { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_insert_empty_tree { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings; } - - pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings; } - - pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings; } - - pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings; } - - pub mod grove_get_raw { use crate as dash_sdk_bindings; } - - pub mod grove_get_raw_item { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_move_items_in_path_query { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings; } - - pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings; } - - pub mod batch_insert_item_with_sum_item_if_not_exists { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_clear { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings; } - - pub mod batch_move { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_apply_operation { use crate as dash_sdk_bindings; } - - pub mod grove_get_raw_optional { use crate as dash_sdk_bindings; } - - pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings; } - - pub mod grove_has_raw { use crate as dash_sdk_bindings; } - - pub mod batch_insert_if_not_exists { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings; } - - pub mod batch_insert_empty_count_sum_tree { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings; } - - pub mod batch_insert_sum_item_or_add_to_if_already_exists { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_delete_items_in_path_query { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_insert_sum_item_if_not_exists { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_insert { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings; } - - pub mod grove_get_proved_path_query_v1 { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_replace { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings; } - - pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings; } - - pub mod grove_get_path_query_serialized_or_sum_results { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings; } - - pub mod batch_insert_empty_provable_count_tree { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings; } - - pub mod batch_insert_empty_tree_if_not_exists { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_refresh_reference { use crate as dash_sdk_bindings; } - - pub mod batch_insert_if_not_exists_return_existing_element { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_delete { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod object_size_info { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod drive_key_info { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod path_key_info { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod contract_info { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod path_key_element_info { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod document_info { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod key_value_info { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod path_info { - use crate as dash_sdk_bindings; - } - } - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod prove_state_transition { - use crate as dash_sdk_bindings; - } - - pub mod prove_multiple_state_transition_results { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_elements { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod verify { - use crate as dash_sdk_bindings; - - pub mod identity { - use crate as dash_sdk_bindings; - - pub mod verify_identity_nonce { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings; } - - pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings; } - - pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings; } - - pub mod verify_full_identity_by_non_unique_public_key_hash { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_identity_keys_by_identity_id { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_full_identity_by_identity_id { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_identity_balance_and_revision_for_identity_id { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings; } - - pub mod verify_identity_id_by_non_unique_public_key_hash { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings; } - - pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings; } - - pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings; } - - pub mod verify_identity_revision_for_identity_id { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings; } - - pub mod verify_identity_contract_nonce { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod group { - use crate as dash_sdk_bindings; - - pub mod verify_active_action_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_group_info { use crate as dash_sdk_bindings; } - - pub mod verify_action_signers_total_power { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings; } - - pub mod verify_action_signers { use crate as dash_sdk_bindings; } - } - - pub mod document_sum { - use crate as dash_sdk_bindings; - - pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings; } - - pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings; } - - pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings; } - - pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings; } - - pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings; } - - pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings; } - - pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings; } - - pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings; } - - pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings; } - - pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings; } - } - - pub mod state_transition { - use crate as dash_sdk_bindings; - - pub mod verify_state_transition_was_executed_with_proof { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod state_transition_execution_path_queries { - use crate as dash_sdk_bindings; - - pub mod token_transition { use crate as dash_sdk_bindings; } - } - } - - pub mod single_document { - use crate as dash_sdk_bindings; - - pub mod verify_proof { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_proof_keep_serialized { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod tokens { - use crate as dash_sdk_bindings; - - pub mod verify_token_direct_selling_price { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings; } - - pub mod verify_token_info_for_identity_id { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_direct_selling_prices { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_infos_for_identity_ids { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_status { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_pre_programmed_distributions { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings; } - - pub mod verify_token_total_supply_and_aggregated_identity_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_perpetual_distribution_last_paid_time { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_contract_info { use crate as dash_sdk_bindings; } - - pub mod verify_token_balance_for_identity_id { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_infos_for_identity_id { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_statuses { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod contract { - use crate as dash_sdk_bindings; - - pub mod verify_contract { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_contract_history { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_contract_return_serialization { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod document { - use crate as dash_sdk_bindings; - - pub mod verify_document_history { use crate as dash_sdk_bindings; } - - pub mod verify_proof { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_start_at_document_in_proof { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_proof_keep_serialized { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod voting { - use crate as dash_sdk_bindings; - - pub mod verify_masternode_vote { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_specialized_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_vote_poll_vote_state_proof { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_vote_poll_votes_proof { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_identity_votes_given_proof { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_vote_polls_end_date_query { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_contests_proof { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod system { - use crate as dash_sdk_bindings; - - pub mod verify_upgrade_vote_status { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_epoch_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings; } - - pub mod verify_elements { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_upgrade_state { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_finalized_epoch_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_epoch_proposers { use crate as dash_sdk_bindings; } - } - - pub mod shielded { - use crate as dash_sdk_bindings; - - pub mod verify_shielded_pool_state { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_shielded_encrypted_notes { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_most_recent_shielded_anchor { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_shielded_nullifiers { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_shielded_anchors { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_shielded_notes_count { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod address_funds { - use crate as dash_sdk_bindings; - - pub mod verify_address_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_recent_address_balance_changes { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings; } - - pub mod verify_compacted_address_balance_changes { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings; } - - pub mod verify_addresses_infos { use crate as dash_sdk_bindings; } - } - - pub mod document_count { - use crate as dash_sdk_bindings; - - pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings; } - - pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings; } - - pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings; } - - pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings; } - - pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod open { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod error { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod state_transition_action { - use crate as dash_sdk_bindings; - - pub mod batch { - use crate as dash_sdk_bindings; - - pub mod batched_transition { - use crate as dash_sdk_bindings; - - pub mod token_transition { - use crate as dash_sdk_bindings; - - pub mod token_unfreeze_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod token_destroy_frozen_funds_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod token_set_price_for_direct_purchase_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod token_claim_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod token_burn_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_transition_action_type { use crate as dash_sdk_bindings; } - - pub mod token_base_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_direct_purchase_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod token_config_update_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod token_emergency_action_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod token_transfer_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod token_mint_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_freeze_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - } - - pub mod document_transition { - use crate as dash_sdk_bindings; - - pub mod document_purchase_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_replace_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_delete_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_update_price_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_base_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_transfer_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_create_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - } - - pub mod system { - use crate as dash_sdk_bindings; - - pub mod bump_identity_data_contract_nonce_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - - pub mod transformer { use crate as dash_sdk_bindings; } - } - - pub mod partially_use_asset_lock_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod bump_identity_nonce_action { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod bump_address_input_nonces_action { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - } - - pub mod action_convert_to_operations { - use crate as dash_sdk_bindings; - - pub mod identity { - use crate as dash_sdk_bindings; - - pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings; } - - pub mod identity_create_transition { use crate as dash_sdk_bindings; } - - pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings; } - - pub mod identity_top_up_transition { use crate as dash_sdk_bindings; } - - pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings; } - - pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings; } - - pub mod identity_update_transition { use crate as dash_sdk_bindings; } - - pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings; } - - pub mod masternode_vote_transition { use crate as dash_sdk_bindings; } - } - - pub mod batch { - use crate as dash_sdk_bindings; - - pub mod batch_transition { use crate as dash_sdk_bindings; } - - pub mod token { use crate as dash_sdk_bindings; } - - pub mod document { use crate as dash_sdk_bindings; } - } - - pub mod shielded { - use crate as dash_sdk_bindings; - - pub mod shielded_transfer_transition { use crate as dash_sdk_bindings; } - - pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings; } - - pub mod shield_transition { use crate as dash_sdk_bindings; } - - pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings; } - - pub mod unshield_transition { use crate as dash_sdk_bindings; } - - pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings; } - } - - pub mod address_funds { - use crate as dash_sdk_bindings; - - pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings; } - - pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings; } - - pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings; } - } - - pub mod contract { - use crate as dash_sdk_bindings; - - pub mod data_contract_update_transition { use crate as dash_sdk_bindings; } - - pub mod data_contract_create_transition { use crate as dash_sdk_bindings; } - } - - pub mod system { - use crate as dash_sdk_bindings; - - pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings; } - - pub mod bump_address_input_nonces { use crate as dash_sdk_bindings; } - - pub mod partially_use_asset_lock { use crate as dash_sdk_bindings; } - - pub mod bump_identity_nonce { use crate as dash_sdk_bindings; } - } - } - - pub mod shielded { - use crate as dash_sdk_bindings; - - pub mod identity_create_from_shielded_pool { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod shield { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod shield_from_asset_lock { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod shielded_withdrawal { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod shielded_transfer { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod unshield { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod address_funds { - use crate as dash_sdk_bindings; - - pub mod address_funding_from_asset_lock { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod address_funds_transfer { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod address_credit_withdrawal { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod contract { - use crate as dash_sdk_bindings; - - pub mod data_contract_update { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod data_contract_create { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod identity { - use crate as dash_sdk_bindings; - - pub mod identity_credit_transfer_to_addresses { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod identity_create_from_addresses { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod identity_topup { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod masternode_vote { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod identity_update { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod identity_credit_transfer { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod identity_create { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod identity_credit_withdrawal { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod transformer { use crate as dash_sdk_bindings; } - } - - pub mod identity_topup_from_addresses { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - } - } - - #[cfg(feature = "server")] - pub mod cache { - use crate as dash_sdk_bindings; - - pub mod data_contract { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - #[cfg(feature = "server")] - pub mod fees { - use crate as dash_sdk_bindings; - - pub mod op { use crate as dash_sdk_bindings; } - - pub mod calculate_fee { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod drive { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod asset_lock { - use crate as dash_sdk_bindings; - - pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings; } - - pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings; } - - pub mod estimation_costs { - use crate as dash_sdk_bindings; - - pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings; } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod balances { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod remove_from_system_credits_operations { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod remove_from_system_credits { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod add_to_system_credits { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod add_to_system_credits_operations { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod calculate_total_credits_balance { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod votes { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod insert { - use crate as dash_sdk_bindings; - - pub mod vote_poll { - use crate as dash_sdk_bindings; - - pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings; } - } - - pub mod contested_resource { - use crate as dash_sdk_bindings; - - pub mod insert_stored_info_for_contested_resource_vote_poll { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod individual_vote { - use crate as dash_sdk_bindings; - - pub mod register_contested_resource_identity_vote { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - - pub mod register_identity_vote { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod cleanup { - use crate as dash_sdk_bindings; - - pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings; } - - pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings; } - - pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings; } - - pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings; } - - pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings; } - - pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings; } - - pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings; } - - pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod resolved { - use crate as dash_sdk_bindings; - - pub mod votes { - use crate as dash_sdk_bindings; - - pub mod resolved_resource_vote { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - } - - pub mod vote_polls { - use crate as dash_sdk_bindings; - - pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod fetch { - use crate as dash_sdk_bindings; - - pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings; } - - pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings; } - - pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod paths { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod storage_form { - use crate as dash_sdk_bindings; - - pub mod vote_storage_form { use crate as dash_sdk_bindings; } - - pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod setup { - use crate as dash_sdk_bindings; - - pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod platform_state { - use crate as dash_sdk_bindings; - - pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings; } - - pub mod store_platform_state_bytes { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod group { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod insert { - use crate as dash_sdk_bindings; - - pub mod add_new_groups { use crate as dash_sdk_bindings; } - - pub mod add_group_action { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - pub mod prove_action_signers { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_group_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_action_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_group_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod queries { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - pub mod fetch { - use crate as dash_sdk_bindings; - - pub mod fetch_action_id_info_keep_serialized { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_action_id_signers_power { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_group_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_action_id_has_signer { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_active_action_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_group_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_action_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_action_is_closed { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_action_signers { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod estimated_costs { - use crate as dash_sdk_bindings; - - pub mod for_add_groups { use crate as dash_sdk_bindings; } - - pub mod for_add_group_action { use crate as dash_sdk_bindings; } - } - - pub mod paths { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify", feature = "fixtures-and-mocks"))] - pub mod contract { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod migration { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod estimation_costs { - use crate as dash_sdk_bindings; - - pub mod add_estimation_costs_for_contract_insertion { - use crate as dash_sdk_bindings; - - pub mod v1 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod update { - use crate as dash_sdk_bindings; - - pub mod update_description { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod update_contract { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod v1 { use crate as dash_sdk_bindings; } - } - - pub mod update_keywords { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod insert { - use crate as dash_sdk_bindings; - - pub mod add_new_keywords { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod add_contract_to_storage { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod insert_contract { - use crate as dash_sdk_bindings; - - pub mod v1 { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - pub mod add_description { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - pub mod prove_contract_history { use crate as dash_sdk_bindings; } - - pub mod prove_contract { use crate as dash_sdk_bindings; } - - pub mod prove_contracts { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod apply { - use crate as dash_sdk_bindings; - - pub mod apply_contract { use crate as dash_sdk_bindings; } - - pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod get_fetch { - use crate as dash_sdk_bindings; - - pub mod fetch_contract_ids { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings; } - - pub mod fetch_contracts { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_contract { use crate as dash_sdk_bindings; } - - pub mod fetch_contract_with_history { use crate as dash_sdk_bindings; } - - pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings; } - - pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings; } - - pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings; } - } - } - - #[cfg(any(feature = "server", feature = "verify", feature = "fixtures-and-mocks"))] - pub mod document { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod index_uniqueness { - use crate as dash_sdk_bindings; - - pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings; } - - pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings; } - - pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings; } - - pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings; } - - pub mod internal { - use crate as dash_sdk_bindings; - - pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings; } - } - - pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "fixtures-and-mocks"))] - pub mod query { - use crate as dash_sdk_bindings; - - pub mod query_documents { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_document_history_query { use crate as dash_sdk_bindings; } - - pub mod query_contested_documents_vote_state { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod query_contested_documents_storage { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod query_documents_with_flags { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod primary_key_tree_type { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "fixtures-and-mocks"))] - pub mod insert_contested { - use crate as dash_sdk_bindings; - - pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings; } - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings; } - - pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings; } - - pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings; } - - pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings; } - - pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings; } - - pub mod add_contested_document { use crate as dash_sdk_bindings; } - - pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod estimation_costs { - use crate as dash_sdk_bindings; - - pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings; } - - pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings; } - - pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - pub mod prove_document_history { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "fixtures-and-mocks"))] - pub mod update { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod update_document_for_contract { - use crate as dash_sdk_bindings; - } - - pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings; } - - pub mod internal { - use crate as dash_sdk_bindings; - - pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings; } - - pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod update_document_for_contract_id { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod add_update_multiple_documents_operations { - use crate as dash_sdk_bindings; - } - } - - #[cfg(any(feature = "server", feature = "fixtures-and-mocks"))] - pub mod get_fetch { - use crate as dash_sdk_bindings; - - pub mod fetch_document_history { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod delete { - use crate as dash_sdk_bindings; - - pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings; } - - pub mod internal { - use crate as dash_sdk_bindings; - - pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings; } - } - - pub mod delete_document_for_contract { use crate as dash_sdk_bindings; } - - pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings; } - - pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings; } - - pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings; } - - pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings; } - - pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings; } - - pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings; } - - pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings; } - - pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "fixtures-and-mocks"))] - pub mod insert { - use crate as dash_sdk_bindings; - - pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings; } - - pub mod add_document { use crate as dash_sdk_bindings; } - - pub mod add_document_for_contract { use crate as dash_sdk_bindings; } - - pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings; } - - pub mod add_document_to_primary_storage { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings; } - - pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings; } - - pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod saved_block_transactions { - use crate as dash_sdk_bindings; - - pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings; } - - pub mod store_address_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod compact_address_balances { use crate as dash_sdk_bindings; } - - pub mod fetch_compacted_address_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_address_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod system { - use crate as dash_sdk_bindings; - - pub mod fetch_elements { use crate as dash_sdk_bindings; } - - pub mod protocol_version { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - pub mod genesis_time { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod estimation_costs { - use crate as dash_sdk_bindings; - - pub mod for_total_system_credits_update { use crate as dash_sdk_bindings; } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod address_funds { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod estimated_costs { - use crate as dash_sdk_bindings; - - pub mod for_address_balance_update { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - pub mod prove_address_funds_branch_query { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_address_funds_trunk_query { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_balance_and_nonce { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_balances_with_nonces { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod set_balance_to_address { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod remove_balance_from_address { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod add_balance_to_address { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch { - use crate as dash_sdk_bindings; - - pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings; } - - pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings; } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod shielded { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod read_total_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod insert_nullifiers { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod paths { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod record_anchor_if_changed { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod update_total_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod has_nullifier { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod has_anchor { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prune_anchors { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod insert_note { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod notes_count { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod shared { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod shared_estimation_costs { - use crate as dash_sdk_bindings; - - pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings; } - - pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings; } - - pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings; } - - pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings; } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod tokens { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod unfreeze { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod transfer { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod apply_status { - use crate as dash_sdk_bindings; - } - - pub mod paths { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - pub mod mint { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod system { - use crate as dash_sdk_bindings; - - pub mod prove_token_total_supply_and_aggregated_identity_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod create_token_trees { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_token_total_supply { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod remove_from_token_total_supply { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod add_to_token_total_supply { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_token_total_aggregated_identity_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod freeze { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod add_transaction_history_operations { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod burn { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod mint_many { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod direct_purchase { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod fetch_tokens_direct_purchase_price { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch_token_direct_purchase_price { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod set_direct_purchase_price { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod prove_tokens_direct_purchase_price { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod calculate_total_tokens_balance { - use crate as dash_sdk_bindings; - } - - pub mod balance { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod remove_from_identity_token_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove_identity_token_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod fetch_identity_token_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod fetch_identity_token_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod update { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod fetch_identities_token_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod add_to_previous_token_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - #[cfg(feature = "server")] - pub mod prove_identities_token_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod contract_info { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod fetch_token_contract_info { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod prove_token_contract_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod distribution { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod mark_pre_programmed_release_as_distributed { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - pub mod pre_programmed_distributions { use crate as dash_sdk_bindings; } - - pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod add_perpetual_distribution { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch { - use crate as dash_sdk_bindings; - - pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings; } - - pub mod pre_programmed_distributions { use crate as dash_sdk_bindings; } - - pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod mark_perpetual_release_as_distributed { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod add_pre_programmed_distribution { - use crate as dash_sdk_bindings; - } - } - - pub mod info { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod fetch_identity_token_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove_identity_token_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod fetch_identities_token_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove_identities_token_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod queries { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - pub mod fetch_identity_token_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod status { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod prove_token_statuses { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod fetch_token_statuses { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod fetch_token_status { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod estimated_costs { - use crate as dash_sdk_bindings; - - pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings; } - - pub mod for_token_total_supply { use crate as dash_sdk_bindings; } - - pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings; } - - pub mod for_token_status_infos { use crate as dash_sdk_bindings; } - - pub mod for_token_contract_infos { use crate as dash_sdk_bindings; } - - pub mod for_token_identity_infos { use crate as dash_sdk_bindings; } - - pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings; } - - pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings; } - - pub mod for_token_balances { use crate as dash_sdk_bindings; } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod identity { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod estimation_costs { - use crate as dash_sdk_bindings; - - pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings; } - - pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings; } - - pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings; } - - pub mod for_balances { use crate as dash_sdk_bindings; } - - pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings; } - - pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings; } - - pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings; } - - pub mod for_negative_credit { use crate as dash_sdk_bindings; } - - pub mod for_update_revision { use crate as dash_sdk_bindings; } - - pub mod for_identity_contract_info { use crate as dash_sdk_bindings; } - - pub mod for_update_nonce { use crate as dash_sdk_bindings; } - - pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod fetch { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod full_identity { - use crate as dash_sdk_bindings; - - pub mod fetch_full_identities { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod fetch_full_identity { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod queries { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod balance { - use crate as dash_sdk_bindings; - - pub mod fetch_identity_balance { use crate as dash_sdk_bindings; } - - pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - pub mod prove_full_identities_by_unique_public_key_hashes { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_full_identity { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings; } - - pub mod prove_full_identities { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_identity_id_by_unique_public_key_hash { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_identity_ids_by_unique_public_key_hashes { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_full_identity_by_unique_public_key_hash { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_full_identity_by_non_unique_public_key_hash { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod contract_keys { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod revision { - use crate as dash_sdk_bindings; - - pub mod fetch_identity_revision { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod partial_identity { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings; } - - pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings; } - - pub mod fetch_identity_keys { use crate as dash_sdk_bindings; } - - pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings; } - - pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod nonce { - use crate as dash_sdk_bindings; - - pub mod prove_identity_nonce { use crate as dash_sdk_bindings; } - - pub mod fetch_identity_nonce { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod fetch_by_public_key_hashes { - use crate as dash_sdk_bindings; - - pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings; } - - pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings; } - - pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings; } - - pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings; } - - pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings; } - - pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings; } - - pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings; } - - pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings; } - - pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings; } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod contract_info { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod keys { - use crate as dash_sdk_bindings; - - pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings; } - - pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod identity_contract_nonce { - use crate as dash_sdk_bindings; - - pub mod merge_identity_contract_nonce { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove_identity_contract_nonce { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod fetch_identity_contract_nonce { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - - #[cfg(feature = "server")] - pub mod insert { - use crate as dash_sdk_bindings; - - pub mod add_new_identity { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod update { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod structs { - use crate as dash_sdk_bindings; - - pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings; } - - pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings; } - } - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod disable_identity_keys { use crate as dash_sdk_bindings; } - - pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings; } - - pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings; } - - pub mod merge_identity_nonce { use crate as dash_sdk_bindings; } - - pub mod remove_from_identity_balance { use crate as dash_sdk_bindings; } - - pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings; } - - pub mod add_to_identity_balance { use crate as dash_sdk_bindings; } - - pub mod update_identity_revision { use crate as dash_sdk_bindings; } - - pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings; } - - pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings; } - - pub mod re_enable_identity_keys { use crate as dash_sdk_bindings; } - - pub mod add_to_previous_balance { use crate as dash_sdk_bindings; } - } - - pub mod operations { - use crate as dash_sdk_bindings; - - pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings; } - - pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings; } - - pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings; } - - pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings; } - - pub mod update_identity_balance_operation { use crate as dash_sdk_bindings; } - - pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings; } - - pub mod update_identity_revision_operation { use crate as dash_sdk_bindings; } - - pub mod merge_identity_nonce_operations { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod key { - use crate as dash_sdk_bindings; - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod fetch { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod fetch_all_identity_keys { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch_all_current_identity_keys { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch_identity_keys { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch_identities_all_keys { - use crate as dash_sdk_bindings; - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod queries { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod insert_key_hash_identity_reference { - use crate as dash_sdk_bindings; - - pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings; } - - pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings; } - - pub mod estimation_costs { - use crate as dash_sdk_bindings; - - pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings; } - - pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings; } - } - - pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings; } - - pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - pub mod prove_identity_keys { use crate as dash_sdk_bindings; } - - pub mod prove_identities_all_keys { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod insert { - use crate as dash_sdk_bindings; - - pub mod insert_key_searchable_references { use crate as dash_sdk_bindings; } - - pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings; } - - pub mod insert_new_unique_key { use crate as dash_sdk_bindings; } - - pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings; } - - pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings; } - - pub mod replace_key_in_storage { use crate as dash_sdk_bindings; } - - pub mod insert_key_to_storage { use crate as dash_sdk_bindings; } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod balance { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod update { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - #[cfg(all(test, any(feature = "server", feature = "verify")))] - pub mod tests { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod withdrawals { - use crate as dash_sdk_bindings; - - pub mod document { - use crate as dash_sdk_bindings; - - pub mod find_withdrawal_documents_by_status_and_transaction_indices { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_oldest_withdrawal_documents_by_status { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod transaction { - use crate as dash_sdk_bindings; - - pub mod index { - use crate as dash_sdk_bindings; - - pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings; } - - pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings; } - } - - pub mod queue { - use crate as dash_sdk_bindings; - - pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings; } - - pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings; } - - pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings; } - - pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings; } - } - } - - pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod initialization { - use crate as dash_sdk_bindings; - - pub mod genesis_core_height { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod prefunded_specialized_balances { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod empty_prefunded_specialized_balance_operations { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod estimation_costs { - use crate as dash_sdk_bindings; - - pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod add_prefunded_specialized_balance { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod deduct_from_prefunded_specialized_balance_operations { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod v1 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod empty_prefunded_specialized_balance { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod add_prefunded_specialized_balance_operations { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod v1 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod fetch { - use crate as dash_sdk_bindings; - - pub mod single_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - pub mod single_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod credit_pools { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod operations { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod pending_epoch_refunds { - use crate as dash_sdk_bindings; - - pub mod operations { - use crate as dash_sdk_bindings; - - pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings; } - } - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod fetch_and_add_pending_epoch_refunds_to_collection { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings; } - - pub mod add_delete_pending_epoch_refunds_except_specified { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - - #[cfg(feature = "server")] - pub mod storage_fee_distribution_pool { - use crate as dash_sdk_bindings; - - pub mod get_storage_fees_from_distribution_pool { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - } - - #[cfg(feature = "server")] - pub mod unpaid_epoch { - use crate as dash_sdk_bindings; - - pub mod get_unpaid_epoch_index { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod epochs { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod start_block { - use crate as dash_sdk_bindings; - - pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings; } - - pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove_epochs_infos { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod get_finalized_epoch_info { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod has_epoch_tree_exists { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod get_epochs_protocol_versions { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod get_epochs_infos { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod credit_distribution_pools { - use crate as dash_sdk_bindings; - - pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings; } - - pub mod get_epoch_total_credits_for_distribution { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod get_epoch_storage_credits_for_distribution { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod get_epoch_processing_credits_for_distribution { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod get_epoch_fee_multiplier { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings; } - - pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod start_time { - use crate as dash_sdk_bindings; - - pub mod get_epoch_start_time { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - } - - #[cfg(feature = "server")] - pub mod prove_finalized_epoch_infos { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod operations_factory { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod proposers { - use crate as dash_sdk_bindings; - - pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings; } - - pub mod prove_epoch_proposers { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_epoch_proposers { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod get_epochs_proposer_block_count { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod get_epoch_protocol_version { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod protocol_upgrade { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod clear_version_information { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch_validator_version_votes { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch_proved_validator_version_votes { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch_versions_with_counter { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod update_validator_proposed_app_version { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch_proved_versions_with_counter { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod remove_validators_proposed_app_versions { - use crate as dash_sdk_bindings; - } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod query { - use crate as dash_sdk_bindings; - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod conditions { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum drive_query_conditions_WhereOperator { Equal, GreaterThan, GreaterThanOrEquals, LessThan, LessThanOrEquals, Between, BetweenExcludeBounds, BetweenExcludeLeft, BetweenExcludeRight, In, StartsWith } - - impl ferment::FFIConversionFrom for drive_query_conditions_WhereOperator { - unsafe fn ffi_from_const(ffi: *const drive_query_conditions_WhereOperator) -> drive::query::conditions::WhereOperator { - let ffi_ref = &*ffi; - match ffi_ref { - drive_query_conditions_WhereOperator::Equal => drive::query::conditions::WhereOperator::Equal, - drive_query_conditions_WhereOperator::GreaterThan => drive::query::conditions::WhereOperator::GreaterThan, - drive_query_conditions_WhereOperator::GreaterThanOrEquals => drive::query::conditions::WhereOperator::GreaterThanOrEquals, - drive_query_conditions_WhereOperator::LessThan => drive::query::conditions::WhereOperator::LessThan, - drive_query_conditions_WhereOperator::LessThanOrEquals => drive::query::conditions::WhereOperator::LessThanOrEquals, - drive_query_conditions_WhereOperator::Between => drive::query::conditions::WhereOperator::Between, - drive_query_conditions_WhereOperator::BetweenExcludeBounds => drive::query::conditions::WhereOperator::BetweenExcludeBounds, - drive_query_conditions_WhereOperator::BetweenExcludeLeft => drive::query::conditions::WhereOperator::BetweenExcludeLeft, - drive_query_conditions_WhereOperator::BetweenExcludeRight => drive::query::conditions::WhereOperator::BetweenExcludeRight, - drive_query_conditions_WhereOperator::In => drive::query::conditions::WhereOperator::In, - drive_query_conditions_WhereOperator::StartsWith => drive::query::conditions::WhereOperator::StartsWith - } - } - } - - impl ferment::FFIConversionTo for drive_query_conditions_WhereOperator { - unsafe fn ffi_to_const(obj: drive::query::conditions::WhereOperator) -> *const drive_query_conditions_WhereOperator { - ferment::boxed(match obj { - drive::query::conditions::WhereOperator::Equal => drive_query_conditions_WhereOperator::Equal, - drive::query::conditions::WhereOperator::GreaterThan => drive_query_conditions_WhereOperator::GreaterThan, - drive::query::conditions::WhereOperator::GreaterThanOrEquals => drive_query_conditions_WhereOperator::GreaterThanOrEquals, - drive::query::conditions::WhereOperator::LessThan => drive_query_conditions_WhereOperator::LessThan, - drive::query::conditions::WhereOperator::LessThanOrEquals => drive_query_conditions_WhereOperator::LessThanOrEquals, - drive::query::conditions::WhereOperator::Between => drive_query_conditions_WhereOperator::Between, - drive::query::conditions::WhereOperator::BetweenExcludeBounds => drive_query_conditions_WhereOperator::BetweenExcludeBounds, - drive::query::conditions::WhereOperator::BetweenExcludeLeft => drive_query_conditions_WhereOperator::BetweenExcludeLeft, - drive::query::conditions::WhereOperator::BetweenExcludeRight => drive_query_conditions_WhereOperator::BetweenExcludeRight, - drive::query::conditions::WhereOperator::In => drive_query_conditions_WhereOperator::In, - drive::query::conditions::WhereOperator::StartsWith => drive_query_conditions_WhereOperator::StartsWith, - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for drive_query_conditions_WhereOperator { - fn drop(&mut self) { - unsafe { - match self { - drive_query_conditions_WhereOperator::Equal => {} - drive_query_conditions_WhereOperator::GreaterThan => {} - drive_query_conditions_WhereOperator::GreaterThanOrEquals => {} - drive_query_conditions_WhereOperator::LessThan => {} - drive_query_conditions_WhereOperator::LessThanOrEquals => {} - drive_query_conditions_WhereOperator::Between => {} - drive_query_conditions_WhereOperator::BetweenExcludeBounds => {} - drive_query_conditions_WhereOperator::BetweenExcludeLeft => {} - drive_query_conditions_WhereOperator::BetweenExcludeRight => {} - drive_query_conditions_WhereOperator::In => {} - drive_query_conditions_WhereOperator::StartsWith => {} - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::Equal {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::GreaterThan {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::GreaterThanOrEquals {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::LessThan {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::LessThanOrEquals {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::Between {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::BetweenExcludeBounds {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::BetweenExcludeLeft {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::BetweenExcludeRight {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::In {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::StartsWith {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy<>(ffi: *mut drive_query_conditions_WhereOperator) { ferment::unbox_any(ffi); } - - #[doc = "FFI-representation of the [`WhereClause`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_query_conditions_WhereClause { - pub field: *mut std::os::raw::c_char, - pub operator: *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereOperator, - pub value: *mut crate::fermented::types::platform_value::platform_value_Value, - } - - impl ferment::FFIConversionFrom for drive_query_conditions_WhereClause { - unsafe fn ffi_from_const(ffi: *const drive_query_conditions_WhereClause) -> drive::query::conditions::WhereClause { - let ffi_ref = &*ffi; - drive::query::conditions::WhereClause { field: >::ffi_from(ffi_ref.field), operator: >::ffi_from(ffi_ref.operator), value: >::ffi_from(ffi_ref.value) } - } - } - - impl ferment::FFIConversionTo for drive_query_conditions_WhereClause { unsafe fn ffi_to_const(obj: drive::query::conditions::WhereClause) -> *const drive_query_conditions_WhereClause { ferment::boxed(drive_query_conditions_WhereClause { field: >::ffi_to(obj.field), operator: >::ffi_to(obj.operator), value: >::ffi_to(obj.value) }) } } - - impl Drop for drive_query_conditions_WhereClause { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_string(ffi_ref.field); - ferment::unbox_any(ffi_ref.operator); - ferment::unbox_any(ffi_ref.value); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor<>(field: *mut std::os::raw::c_char, operator: *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereOperator, value: *mut crate::fermented::types::platform_value::platform_value_Value) -> *mut drive_query_conditions_WhereClause { ferment::boxed(drive_query_conditions_WhereClause { field, operator, value }) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy<>(ffi: *mut drive_query_conditions_WhereClause) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field<>(obj: *const drive_query_conditions_WhereClause) -> *mut std::os::raw::c_char { (*obj).field } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator<>(obj: *const drive_query_conditions_WhereClause) -> *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereOperator { (*obj).operator } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value<>(obj: *const drive_query_conditions_WhereClause) -> *mut crate::fermented::types::platform_value::platform_value_Value { (*obj).value } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field<>(obj: *const drive_query_conditions_WhereClause) -> *mut std::os::raw::c_char { (*obj).field } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator<>(obj: *const drive_query_conditions_WhereClause) -> *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereOperator { (*obj).operator } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value<>(obj: *const drive_query_conditions_WhereClause) -> *mut crate::fermented::types::platform_value::platform_value_Value { (*obj).value } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod vote_polls_by_end_date_query { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod vote_poll_contestant_votes_query { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod drive_document_average_query { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod drive_dispatcher { - use crate as dash_sdk_bindings; - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod drive_document_sum_query { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod mode_detection { - use crate as dash_sdk_bindings; - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod v0 { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod executors { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod path_query { - use crate as dash_sdk_bindings; - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod vote_poll_vote_state_query { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod drive_document_count_and_sum_query { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod executors { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod test_index { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod ordering { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`OrderClause`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_query_ordering_OrderClause { - pub field: *mut std::os::raw::c_char, - pub ascending: bool, - } - - impl ferment::FFIConversionFrom for drive_query_ordering_OrderClause { - unsafe fn ffi_from_const(ffi: *const drive_query_ordering_OrderClause) -> drive::query::ordering::OrderClause { - let ffi_ref = &*ffi; - drive::query::ordering::OrderClause { field: >::ffi_from(ffi_ref.field), ascending: ffi_ref.ascending } - } - } - - impl ferment::FFIConversionTo for drive_query_ordering_OrderClause { unsafe fn ffi_to_const(obj: drive::query::ordering::OrderClause) -> *const drive_query_ordering_OrderClause { ferment::boxed(drive_query_ordering_OrderClause { field: >::ffi_to(obj.field), ascending: obj.ascending }) } } - - impl Drop for drive_query_ordering_OrderClause { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_string(ffi_ref.field); - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor<>(field: *mut std::os::raw::c_char, ascending: bool) -> *mut drive_query_ordering_OrderClause { ferment::boxed(drive_query_ordering_OrderClause { field, ascending }) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy<>(ffi: *mut drive_query_ordering_OrderClause) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field<>(obj: *const drive_query_ordering_OrderClause) -> *mut std::os::raw::c_char { (*obj).field } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending<>(obj: *const drive_query_ordering_OrderClause) -> bool { (*obj).ascending } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field<>(obj: *const drive_query_ordering_OrderClause) -> *mut std::os::raw::c_char { (*obj).field } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending<>(obj: *const drive_query_ordering_OrderClause) -> bool { (*obj).ascending } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod contested_resource_votes_given_by_identity_query { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod vote_polls_by_document_type_query { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod filter { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod drive_document_count_query { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod executors { - use crate as dash_sdk_bindings; - } - } - } - } - - pub mod dapi_grpc { - use crate as dash_sdk_bindings; - - pub mod mock { use crate as dash_sdk_bindings; } - - #[cfg(feature = "drive")] - pub mod drive { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "platform")] - pub mod platform { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "core")] - pub mod core { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "serde")] - pub mod deserialization { - use crate as dash_sdk_bindings; - } - } - - pub mod platform_mobile { - use crate as dash_sdk_bindings; - - pub mod fetch_document { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string(document: *mut crate::fermented::types::dpp::document::dpp_document_Document) -> *mut std::os::raw::c_char { - let obj = platform_mobile::fetch_document::document_to_string(>::ffi_from(document)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, bytes: *mut crate::fermented::generics::Vec_u8, data_contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, document_type: *mut std::os::raw::c_char) -> *mut crate::fermented::generics::Result_ok_dpp_document_Document_err_String { - let obj = platform_mobile::fetch_document::deserialize_document_sdk(rust_sdk, >>::ffi_from(bytes), >::ffi_from(data_contract_id), >::ffi_from(document_type)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, data_contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, document_type: *mut std::os::raw::c_char, where_clauses: *mut crate::fermented::generics::Vec_drive_query_conditions_WhereClause, order_clauses: *mut crate::fermented::generics::Vec_drive_query_ordering_OrderClause, limit: u32, start: *mut crate::fermented::types::platform_mobile::fetch_document::platform_mobile_fetch_document_StartPoint) -> *mut crate::fermented::generics::Result_ok_Vec_dpp_document_Document_err_String { - let obj = platform_mobile::fetch_document::fetch_documents_with_query_and_sdk(rust_sdk, >::ffi_from(data_contract_id), >::ffi_from(document_type), >>::ffi_from(where_clauses), >>::ffi_from(order_clauses), limit, >::ffi_from_opt(start)); - , String>>>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum platform_mobile_fetch_document_StartPoint { StartAfter(*mut crate::fermented::generics::Vec_u8), StartAt(*mut crate::fermented::generics::Vec_u8) } - - impl ferment::FFIConversionFrom for platform_mobile_fetch_document_StartPoint { - unsafe fn ffi_from_const(ffi: *const platform_mobile_fetch_document_StartPoint) -> platform_mobile::fetch_document::StartPoint { - let ffi_ref = &*ffi; - match ffi_ref { - platform_mobile_fetch_document_StartPoint::StartAfter(o_0) => platform_mobile::fetch_document::StartPoint::StartAfter(>>::ffi_from(*o_0)), - platform_mobile_fetch_document_StartPoint::StartAt(o_0) => platform_mobile::fetch_document::StartPoint::StartAt(>>::ffi_from(*o_0)) - } - } - } - - impl ferment::FFIConversionTo for platform_mobile_fetch_document_StartPoint { - unsafe fn ffi_to_const(obj: platform_mobile::fetch_document::StartPoint) -> *const platform_mobile_fetch_document_StartPoint { - ferment::boxed(match obj { - platform_mobile::fetch_document::StartPoint::StartAfter(o_0) => platform_mobile_fetch_document_StartPoint::StartAfter(>>::ffi_to(o_0)), - platform_mobile::fetch_document::StartPoint::StartAt(o_0) => platform_mobile_fetch_document_StartPoint::StartAt(>>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for platform_mobile_fetch_document_StartPoint { - fn drop(&mut self) { - unsafe { - match self { - platform_mobile_fetch_document_StartPoint::StartAfter(o_0) => { ferment::unbox_any(*o_0); } - platform_mobile_fetch_document_StartPoint::StartAt(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor(o_o_0: *mut crate::fermented::generics::Vec_u8) -> *mut platform_mobile_fetch_document_StartPoint { ferment::boxed(platform_mobile_fetch_document_StartPoint::StartAfter(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor(o_o_0: *mut crate::fermented::generics::Vec_u8) -> *mut platform_mobile_fetch_document_StartPoint { ferment::boxed(platform_mobile_fetch_document_StartPoint::StartAt(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy<>(ffi: *mut platform_mobile_fetch_document_StartPoint) { ferment::unbox_any(ffi); } - } - - pub mod fetch_identity { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, key_hash: *mut crate::fermented::generics::Arr_u8_20) -> *mut crate::fermented::generics::Result_ok_dpp_identity_identity_Identity_err_String { - let obj = platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk(rust_sdk, >::ffi_from(key_hash)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, identifier: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::generics::Result_ok_u64_err_String { - let obj = platform_mobile::fetch_identity::fetch_identity_balance_with_sdk(rust_sdk, >::ffi_from(identifier)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, identifier: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::generics::Result_ok_Option_dpp_identity_identity_Identity_err_String { - let obj = platform_mobile::fetch_identity::fetch_identity_with_sdk(rust_sdk, >::ffi_from(identifier)); - , String>>>::ffi_to(obj) - } - } - - pub mod core { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, txid: *mut crate::fermented::generics::Arr_u8_32) -> *mut crate::fermented::generics::Result_ok_Vec_u8_err_String { - let obj = platform_mobile::core::get_transaction_sdk(rust_sdk, >::ffi_from(txid)); - , String>>>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_core_get_transaction(txid: *mut crate::fermented::generics::Arr_u8_32, quorum_public_key_callback: u64, data_contract_callback: u64) -> *mut crate::fermented::generics::Result_ok_Vec_u8_err_String { - let obj = platform_mobile::core::get_transaction(>::ffi_from(txid), quorum_public_key_callback, data_contract_callback); - , String>>>::ffi_to(obj) - } - } - - pub mod identity { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone(identity: *mut crate::fermented::types::dpp::identity::v0::dpp_identity_v0_IdentityV0) -> *mut crate::fermented::types::dpp::identity::v0::dpp_identity_v0_IdentityV0 { - let obj = platform_mobile::identity::IdentityV0_clone(>::ffi_from(identity)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_get_identity2(identifier: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity { - let obj = platform_mobile::identity::get_identity2(>::ffi_from(identifier)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_Identity_clone(identity: *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity) -> *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity { - let obj = platform_mobile::identity::Identity_clone(>::ffi_from(identity)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone(identity_public_key: *mut crate::fermented::types::dpp::identity::identity_public_key::v0::dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::v0::dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { - let obj = platform_mobile::identity::IdentityPublicKeyV0_clone(>::ffi_from(identity_public_key)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone(public_keys: *mut crate::fermented::generics::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> *mut crate::fermented::generics::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { - let obj = platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone(>>::ffi_from(public_keys)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone(identifier: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { - let obj = platform_mobile::identity::Identifier_clone(>::ffi_from(identifier)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone(identity_public_key: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey { - let obj = platform_mobile::identity::IdentityPublicKey_clone(>::ffi_from(identity_public_key)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds(identifier: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, contract_identifier: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity { - let obj = platform_mobile::identity::get_identity_contract_bounds(>::ffi_from(identifier), >::ffi_from_opt(contract_identifier)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity(id: *mut crate::fermented::generics::Arr_u8_32) -> *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity { - let obj = platform_mobile::identity::create_basic_identity(>::ffi_from(id)); - >::ffi_to(obj) - } - } - - pub mod config { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_config_testnet_address_list() -> *mut crate::fermented::generics::Vec_String { - let obj = platform_mobile::config::testnet_address_list(); - >>::ffi_to(obj) - } - } - - pub mod clone { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone(time: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { - let obj = platform_mobile::clone::TimestampMillis_clone(>::ffi_from(time)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone(document: *mut crate::fermented::types::dpp::document::v0::dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::document::v0::dpp_document_v0_DocumentV0 { - let obj = platform_mobile::clone::DocumentV0_clone(>::ffi_from(document)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone(o: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Contenders) -> *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Contenders { - let obj = platform_mobile::clone::Contenders_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone(o: *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereClause) -> *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereClause { - let obj = platform_mobile::clone::WhereClause_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone(o: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ContestedResource) -> *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ContestedResource { - let obj = platform_mobile::clone::ContestedResource_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone(slice: *mut crate::fermented::generics::Arr_u8_20) -> *mut crate::fermented::generics::Arr_u8_20 { - let obj = platform_mobile::clone::Arr_u8_20_clone(>::ffi_from(slice)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Vote_clone(o: *mut crate::fermented::types::dpp::voting::votes::dpp_voting_votes_Vote) -> *mut crate::fermented::types::dpp::voting::votes::dpp_voting_votes_Vote { - let obj = platform_mobile::clone::Vote_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Value_clone(value: *mut crate::fermented::types::platform_value::platform_value_Value) -> *mut crate::fermented::types::platform_value::platform_value_Value { - let obj = platform_mobile::clone::Value_clone(>::ffi_from(value)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone(value_map: *mut crate::fermented::types::platform_value::value_map::platform_value_value_map_ValueMap) -> *mut crate::fermented::types::platform_value::value_map::platform_value_value_map_ValueMap { - let obj = platform_mobile::clone::ValueMap_clone(>::ffi_from(value_map)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone(o: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_VotePollsGroupedByTimestamp { - let obj = platform_mobile::clone::VotePollsGroupedByTimestamp_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone(vec: *mut crate::fermented::generics::Vec_u8) -> *mut crate::fermented::generics::Vec_u8 { - let obj = platform_mobile::clone::Vec_u8_clone(>>::ffi_from(vec)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone(o: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ContestedResources) -> *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ContestedResources { - let obj = platform_mobile::clone::ContestedResources_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Voters_clone(o: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Voters) -> *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Voters { - let obj = platform_mobile::clone::Voters_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Revision_clone(revision: *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision { - let obj = platform_mobile::clone::Revision_clone(>::ffi_from(revision)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone(o: *mut crate::fermented::types::dpp::voting::contender_structs::contender::dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> *mut crate::fermented::types::dpp::voting::contender_structs::contender::dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { - let obj = platform_mobile::clone::ContenderWithSerializedDocument_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Voter_clone(o: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Voter) -> *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Voter { - let obj = platform_mobile::clone::Voter_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone(o: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ResourceVotesByIdentity) -> *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ResourceVotesByIdentity { - let obj = platform_mobile::clone::ResourceVotesByIdentity_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone(height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { - let obj = platform_mobile::clone::BlockHeight_clone(>::ffi_from(height)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone(height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { - let obj = platform_mobile::clone::CoreBlockHeight_clone(>::ffi_from(height)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone(o: *mut crate::fermented::types::dpp::voting::votes::resource_vote::dpp_voting_votes_resource_vote_ResourceVote) -> *mut crate::fermented::types::dpp::voting::votes::resource_vote::dpp_voting_votes_resource_vote_ResourceVote { - let obj = platform_mobile::clone::ResourceVote_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone(o: *mut crate::fermented::generics::std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> *mut crate::fermented::generics::std_collections_BTreeSet_drive_proof_verifier_types_Voter { - let obj = platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone(>>::ffi_from(o)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone(o: *mut crate::fermented::types::dpp::voting::vote_polls::contested_document_resource_vote_poll::dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut crate::fermented::types::dpp::voting::vote_polls::contested_document_resource_vote_poll::dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { - let obj = platform_mobile::clone::ContestedDocumentResourceVotePoll_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone(id: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID { - let obj = platform_mobile::clone::KeyID_clone(>::ffi_from(id)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone(value_vec: *mut crate::fermented::generics::Vec_platform_value_Value) -> *mut crate::fermented::generics::Vec_platform_value_Value { - let obj = platform_mobile::clone::Vec_Value_clone(>>::ffi_from(value_vec)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone(o: *mut crate::fermented::types::dpp::voting::vote_choices::resource_vote_choice::dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> *mut crate::fermented::types::dpp::voting::vote_choices::resource_vote_choice::dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { - let obj = platform_mobile::clone::ResourceVoteChoice_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Document_clone(document: *mut crate::fermented::types::dpp::document::dpp_document_Document) -> *mut crate::fermented::types::dpp::document::dpp_document_Document { - let obj = platform_mobile::clone::Document_clone(>::ffi_from(document)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone(slice: *mut crate::fermented::generics::Arr_u8_36) -> *mut crate::fermented::generics::Arr_u8_36 { - let obj = platform_mobile::clone::Arr_u8_36_clone(>::ffi_from(slice)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone(o: *mut crate::fermented::types::dpp::voting::contender_structs::contender::v0::dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> *mut crate::fermented::types::dpp::voting::contender_structs::contender::v0::dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { - let obj = platform_mobile::clone::ContenderWithSerializedDocumentV0_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone(o: *mut crate::fermented::generics::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> *mut crate::fermented::generics::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { - let obj = platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone()>>::ffi_from(o)); - )>>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone(o: *mut crate::fermented::types::platform_value::platform_value_Hash256) -> *mut crate::fermented::types::platform_value::platform_value_Hash256 { - let obj = platform_mobile::clone::Hash256_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone(time: *mut crate::fermented::types::dpp::prelude::dpp_prelude_TimestampMillis) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_TimestampMillis { - let obj = platform_mobile::clone::prelude_TimestampMillis_clone(>::ffi_from(time)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone(slice: *mut crate::fermented::generics::Arr_u8_32) -> *mut crate::fermented::generics::Arr_u8_32 { - let obj = platform_mobile::clone::Arr_u8_32_clone(>::ffi_from(slice)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone(o: *mut crate::fermented::types::dpp::voting::vote_polls::dpp_voting_vote_polls_VotePoll) -> *mut crate::fermented::types::dpp::voting::vote_polls::dpp_voting_vote_polls_VotePoll { - let obj = platform_mobile::clone::VotePoll_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone(o: *mut crate::fermented::types::drive::query::ordering::drive_query_ordering_OrderClause) -> *mut crate::fermented::types::drive::query::ordering::drive_query_ordering_OrderClause { - let obj = platform_mobile::clone::OrderClause_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone(info: *mut crate::fermented::types::platform_mobile::state_transition::platform_mobile_state_transition_StateTransitionInfo) -> *mut crate::fermented::types::platform_mobile::state_transition::platform_mobile_state_transition_StateTransitionInfo { - let obj = platform_mobile::clone::StateTransitionInfo_clone(>::ffi_from(info)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone(o: *mut crate::fermented::types::dpp::voting::votes::resource_vote::v0::dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> *mut crate::fermented::types::dpp::voting::votes::resource_vote::v0::dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { - let obj = platform_mobile::clone::ResourceVoteV0_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone(map: *mut crate::fermented::generics::std_collections_Map_keys_String_values_platform_value_Value) -> *mut crate::fermented::generics::std_collections_Map_keys_String_values_platform_value_Value { - let obj = platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone(>>::ffi_from(map)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone(o: *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereOperator) -> *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereOperator { - let obj = platform_mobile::clone::WhereOperator_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - } - - pub mod sdk { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk(quorum_public_key_callback: u64, data_contract_callback: u64, is_testnet: bool) -> *mut platform_mobile::sdk::DashSdk { - let obj = platform_mobile::sdk::create_dash_sdk(quorum_public_key_callback, data_contract_callback, is_testnet); - ferment::boxed(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk) { - let obj = platform_mobile::sdk::destroy_dash_sdk(rust_sdk); - ; - } - - #[doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context(context_provider_context: usize, quorum_public_key_callback: u64, data_contract_callback: u64, is_testnet: bool, connect_timeout: usize, timeout: usize, retries: usize) -> *mut platform_mobile::sdk::DashSdk { - let obj = platform_mobile::sdk::create_dash_sdk_with_context(context_provider_context, quorum_public_key_callback, data_contract_callback, is_testnet, connect_timeout, timeout, retries); - ferment::boxed(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode(evonode: *mut std::os::raw::c_char, quorum_public_key_callback: u64, data_contract_callback: u64, is_testnet: bool) -> *mut platform_mobile::sdk::DashSdk { - let obj = platform_mobile::sdk::create_dash_sdk_using_single_evonode(>::ffi_from(evonode), quorum_public_key_callback, data_contract_callback, is_testnet); - ferment::boxed(obj) - } - } - - pub mod voting { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls(rust_sdk: *mut platform_mobile::sdk::DashSdk, start_time: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, start_time_included: bool, end_time: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, end_time_included: bool, limit: u16, offset: u16, order_ascending: bool) -> *mut crate::fermented::generics::Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { - let obj = platform_mobile::voting::get_vote_polls(rust_sdk, >::ffi_from(start_time), start_time_included, >::ffi_from(end_time), end_time_included, limit, offset, order_ascending); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_voting_get_votes(rust_sdk: *mut platform_mobile::sdk::DashSdk, data_contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::generics::Result_ok_Option_dpp_voting_votes_Vote_err_String { - let obj = platform_mobile::voting::get_votes(rust_sdk, >::ffi_from(data_contract_id)); - , String>>>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders(rust_sdk: *mut platform_mobile::sdk::DashSdk, index_name: *mut std::os::raw::c_char, index_values: *mut crate::fermented::generics::Vec_platform_value_Value, document_type_name: *mut std::os::raw::c_char, contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::generics::Result_ok_drive_proof_verifier_types_Contenders_err_String { - let obj = platform_mobile::voting::get_vote_contenders(rust_sdk, >::ffi_from(index_name), >>::ffi_from(index_values), >::ffi_from(document_type_name), >::ffi_from(contract_id)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources(rust_sdk: *mut platform_mobile::sdk::DashSdk, document_type_name: *mut std::os::raw::c_char, data_contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, limit: u16, start_at: *mut crate::fermented::types::platform_value::platform_value_Value, start_at_include: bool) -> *mut crate::fermented::generics::Result_ok_drive_proof_verifier_types_ContestedResources_err_String { - let obj = platform_mobile::voting::get_contested_resources(rust_sdk, >::ffi_from(document_type_name), >::ffi_from(data_contract_id), limit, >::ffi_from_opt(start_at), start_at_include); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform(rust_sdk: *mut platform_mobile::sdk::DashSdk, vote: *mut crate::fermented::types::dpp::voting::votes::dpp_voting_votes_Vote, voter_pro_tx_hash: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, voting_public_key: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey, signer_context: usize, signer_callback: u64) -> *mut crate::fermented::generics::Result_ok_dpp_voting_votes_Vote_err_String { - let obj = platform_mobile::voting::put_vote_to_platform(rust_sdk, >::ffi_from(vote), >::ffi_from(voter_pro_tx_hash), >::ffi_from(voting_public_key), signer_context, signer_callback); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode(rust_sdk: *mut platform_mobile::sdk::DashSdk, masternode_protxhash: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, index_name: *mut std::os::raw::c_char, index_values: *mut crate::fermented::generics::Vec_platform_value_Value, document_type_name: *mut std::os::raw::c_char, contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::generics::Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { - let obj = platform_mobile::voting::get_last_vote_from_masternode(rust_sdk, >::ffi_from(masternode_protxhash), >::ffi_from(index_name), >>::ffi_from(index_values), >::ffi_from(document_type_name), >::ffi_from(contract_id)); - >>::ffi_to(obj) - } - } - - pub mod state_transition { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add(bytes: *mut crate::fermented::generics::Vec_u8) -> *mut crate::fermented::generics::Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { - let obj = platform_mobile::state_transition::identity_update_public_keys_to_add(>>::ffi_from(bytes)); - , String>>>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition(bytes: *mut crate::fermented::generics::Vec_u8) -> *mut crate::fermented::generics::Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { - let obj = platform_mobile::state_transition::deserialize_state_transition(>>::ffi_from(bytes)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`StateTransitionInfo`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_mobile_state_transition_StateTransitionInfo { - pub transition_type: u8, - pub name: *mut std::os::raw::c_char, - pub owner_id: *mut crate::fermented::generics::Vec_u8, - pub revision: u64, - pub identity_nonce: u64, - } - - impl ferment::FFIConversionFrom for platform_mobile_state_transition_StateTransitionInfo { - unsafe fn ffi_from_const(ffi: *const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile::state_transition::StateTransitionInfo { - let ffi_ref = &*ffi; - platform_mobile::state_transition::StateTransitionInfo { transition_type: ffi_ref.transition_type, name: >::ffi_from(ffi_ref.name), owner_id: >>::ffi_from(ffi_ref.owner_id), revision: ffi_ref.revision, identity_nonce: ffi_ref.identity_nonce } - } - } - - impl ferment::FFIConversionTo for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const(obj: platform_mobile::state_transition::StateTransitionInfo) -> *const platform_mobile_state_transition_StateTransitionInfo { ferment::boxed(platform_mobile_state_transition_StateTransitionInfo { transition_type: obj.transition_type, name: >::ffi_to(obj.name), owner_id: >>::ffi_to(obj.owner_id), revision: obj.revision, identity_nonce: obj.identity_nonce }) } } - - impl Drop for platform_mobile_state_transition_StateTransitionInfo { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - ferment::unbox_string(ffi_ref.name); - ferment::unbox_any(ffi_ref.owner_id); - ; - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor<>(transition_type: u8, name: *mut std::os::raw::c_char, owner_id: *mut crate::fermented::generics::Vec_u8, revision: u64, identity_nonce: u64) -> *mut platform_mobile_state_transition_StateTransitionInfo { ferment::boxed(platform_mobile_state_transition_StateTransitionInfo { transition_type, name, owner_id, revision, identity_nonce }) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy<>(ffi: *mut platform_mobile_state_transition_StateTransitionInfo) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (*obj).transition_type } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> *mut std::os::raw::c_char { (*obj).name } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> *mut crate::fermented::generics::Vec_u8 { (*obj).owner_id } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (*obj).revision } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (*obj).identity_nonce } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (*obj).transition_type } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> *mut std::os::raw::c_char { (*obj).name } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> *mut crate::fermented::generics::Vec_u8 { (*obj).owner_id } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (*obj).revision } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (*obj).identity_nonce } - } - - pub mod put { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum platform_mobile_put_AssetLockProofFFI { Instant(*mut crate::fermented::types::platform_mobile::put::platform_mobile_put_InstantAssetLockProofFFI), Chain(*mut crate::fermented::types::platform_mobile::put::platform_mobile_put_ChainAssetLockProofFFI) } - - impl ferment::FFIConversionFrom for platform_mobile_put_AssetLockProofFFI { - unsafe fn ffi_from_const(ffi: *const platform_mobile_put_AssetLockProofFFI) -> platform_mobile::put::AssetLockProofFFI { - let ffi_ref = &*ffi; - match ffi_ref { - platform_mobile_put_AssetLockProofFFI::Instant(o_0) => platform_mobile::put::AssetLockProofFFI::Instant(>::ffi_from(*o_0)), - platform_mobile_put_AssetLockProofFFI::Chain(o_0) => platform_mobile::put::AssetLockProofFFI::Chain(>::ffi_from(*o_0)) - } - } - } - - impl ferment::FFIConversionTo for platform_mobile_put_AssetLockProofFFI { - unsafe fn ffi_to_const(obj: platform_mobile::put::AssetLockProofFFI) -> *const platform_mobile_put_AssetLockProofFFI { - ferment::boxed(match obj { - platform_mobile::put::AssetLockProofFFI::Instant(o_0) => platform_mobile_put_AssetLockProofFFI::Instant(>::ffi_to(o_0)), - platform_mobile::put::AssetLockProofFFI::Chain(o_0) => platform_mobile_put_AssetLockProofFFI::Chain(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for platform_mobile_put_AssetLockProofFFI { - fn drop(&mut self) { - unsafe { - match self { - platform_mobile_put_AssetLockProofFFI::Instant(o_0) => { ferment::unbox_any(*o_0); } - platform_mobile_put_AssetLockProofFFI::Chain(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor(o_o_0: *mut crate::fermented::types::platform_mobile::put::platform_mobile_put_InstantAssetLockProofFFI) -> *mut platform_mobile_put_AssetLockProofFFI { ferment::boxed(platform_mobile_put_AssetLockProofFFI::Instant(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor(o_o_0: *mut crate::fermented::types::platform_mobile::put::platform_mobile_put_ChainAssetLockProofFFI) -> *mut platform_mobile_put_AssetLockProofFFI { ferment::boxed(platform_mobile_put_AssetLockProofFFI::Chain(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy<>(ffi: *mut platform_mobile_put_AssetLockProofFFI) { ferment::unbox_any(ffi); } - - #[doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_mobile_put_InstantAssetLockProofFFI { - pub instant_lock: *mut crate::fermented::generics::Vec_u8, - pub transaction: *mut crate::fermented::generics::Vec_u8, - pub output_index: u32, - } - - impl ferment::FFIConversionFrom for platform_mobile_put_InstantAssetLockProofFFI { - unsafe fn ffi_from_const(ffi: *const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile::put::InstantAssetLockProofFFI { - let ffi_ref = &*ffi; - platform_mobile::put::InstantAssetLockProofFFI { instant_lock: >>::ffi_from(ffi_ref.instant_lock), transaction: >>::ffi_from(ffi_ref.transaction), output_index: ffi_ref.output_index } - } - } - - impl ferment::FFIConversionTo for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const(obj: platform_mobile::put::InstantAssetLockProofFFI) -> *const platform_mobile_put_InstantAssetLockProofFFI { ferment::boxed(platform_mobile_put_InstantAssetLockProofFFI { instant_lock: >>::ffi_to(obj.instant_lock), transaction: >>::ffi_to(obj.transaction), output_index: obj.output_index }) } } - - impl Drop for platform_mobile_put_InstantAssetLockProofFFI { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.instant_lock); - ferment::unbox_any(ffi_ref.transaction); - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor<>(instant_lock: *mut crate::fermented::generics::Vec_u8, transaction: *mut crate::fermented::generics::Vec_u8, output_index: u32) -> *mut platform_mobile_put_InstantAssetLockProofFFI { ferment::boxed(platform_mobile_put_InstantAssetLockProofFFI { instant_lock, transaction, output_index }) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy<>(ffi: *mut platform_mobile_put_InstantAssetLockProofFFI) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock<>(obj: *const platform_mobile_put_InstantAssetLockProofFFI) -> *mut crate::fermented::generics::Vec_u8 { (*obj).instant_lock } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction<>(obj: *const platform_mobile_put_InstantAssetLockProofFFI) -> *mut crate::fermented::generics::Vec_u8 { (*obj).transaction } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index<>(obj: *const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (*obj).output_index } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock<>(obj: *const platform_mobile_put_InstantAssetLockProofFFI) -> *mut crate::fermented::generics::Vec_u8 { (*obj).instant_lock } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction<>(obj: *const platform_mobile_put_InstantAssetLockProofFFI) -> *mut crate::fermented::generics::Vec_u8 { (*obj).transaction } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index<>(obj: *const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (*obj).output_index } - - #[doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone(a: *mut crate::fermented::types::platform_mobile::put::platform_mobile_put_InstantAssetLockProofFFI) -> *mut crate::fermented::types::platform_mobile::put::platform_mobile_put_InstantAssetLockProofFFI { - let obj = platform_mobile::put::InstantAssetLockProofFFI_clone(>::ffi_from(a)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, identity: *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity, asset_lock_proof: *mut crate::fermented::types::platform_mobile::put::platform_mobile_put_AssetLockProofFFI, asset_lock_proof_private_key: *mut crate::fermented::generics::Vec_u8, is_testnet: bool) -> *mut crate::fermented::generics::Result_ok_u64_err_String { - let obj = platform_mobile::put::topup_identity_sdk(rust_sdk, >::ffi_from(identity), >::ffi_from(asset_lock_proof), >>::ffi_from(asset_lock_proof_private_key), is_testnet); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, document: *mut crate::fermented::types::dpp::document::dpp_document_Document, data_contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, document_type_str: *mut std::os::raw::c_char, identity_public_key: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey, block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, core_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, signer_context: usize, signer_callback: u64) -> *mut crate::fermented::generics::Result_ok_dpp_document_Document_err_String { - let obj = platform_mobile::put::replace_document_sdk(rust_sdk, >::ffi_from(document), >::ffi_from(data_contract_id), >::ffi_from(document_type_str), >::ffi_from(identity_public_key), >::ffi_from(block_height), >::ffi_from(core_block_height), signer_context, signer_callback); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, identity: *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity, asset_lock_proof: *mut crate::fermented::types::platform_mobile::put::platform_mobile_put_AssetLockProofFFI, asset_lock_proof_private_key: *mut crate::fermented::generics::Vec_u8, signer_context: usize, signer_callback: u64, is_testnet: bool) -> *mut crate::fermented::generics::Result_ok_dpp_identity_identity_Identity_err_String { - let obj = platform_mobile::put::put_identity_sdk(rust_sdk, >::ffi_from(identity), >::ffi_from(asset_lock_proof), >>::ffi_from(asset_lock_proof_private_key), signer_context, signer_callback, is_testnet); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_put_document_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, document: *mut crate::fermented::types::dpp::document::dpp_document_Document, data_contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, document_type_str: *mut std::os::raw::c_char, identity_public_key: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey, block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, core_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, signer_context: usize, signer_callback: u64) -> *mut crate::fermented::generics::Result_ok_dpp_document_Document_err_String { - let obj = platform_mobile::put::put_document_sdk(rust_sdk, >::ffi_from(document), >::ffi_from(data_contract_id), >::ffi_from(document_type_str), >::ffi_from(identity_public_key), >::ffi_from(block_height), >::ffi_from(core_block_height), signer_context, signer_callback); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, identity: *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity, master_public_key_id: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID, add_public_keys: *mut crate::fermented::generics::Vec_dpp_identity_identity_public_key_IdentityPublicKey, disable_public_keys: *mut crate::fermented::generics::Vec_dpp_identity_identity_public_key_KeyID, signer_context: usize, signer_callback: u64) -> *mut crate::fermented::generics::Result_ok_dpp_identity_identity_Identity_err_String { - let obj = platform_mobile::put::put_identity_update_sdk(rust_sdk, >::ffi_from(identity), >::ffi_from(master_public_key_id), >>::ffi_from(add_public_keys), >>::ffi_from(disable_public_keys), signer_context, signer_callback); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone(a: *mut crate::fermented::types::platform_mobile::put::platform_mobile_put_ChainAssetLockProofFFI) -> *mut crate::fermented::types::platform_mobile::put::platform_mobile_put_ChainAssetLockProofFFI { - let obj = platform_mobile::put::ChainAssetLockProofFFI_clone(>::ffi_from(a)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_mobile_put_ChainAssetLockProofFFI { - pub core_chain_locked_height: u32, - pub out_point: *mut platform_mobile::custom::OutPoint, - } - - impl ferment::FFIConversionFrom for platform_mobile_put_ChainAssetLockProofFFI { - unsafe fn ffi_from_const(ffi: *const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile::put::ChainAssetLockProofFFI { - let ffi_ref = &*ffi; - platform_mobile::put::ChainAssetLockProofFFI { core_chain_locked_height: ffi_ref.core_chain_locked_height, out_point: >::ffi_from(ffi_ref.out_point) } - } - } - - impl ferment::FFIConversionTo for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const(obj: platform_mobile::put::ChainAssetLockProofFFI) -> *const platform_mobile_put_ChainAssetLockProofFFI { ferment::boxed(platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height: obj.core_chain_locked_height, out_point: >::ffi_to(obj.out_point) }) } } - - impl Drop for platform_mobile_put_ChainAssetLockProofFFI { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - ferment::unbox_any(ffi_ref.out_point); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor<>(core_chain_locked_height: u32, out_point: *mut platform_mobile::custom::OutPoint) -> *mut platform_mobile_put_ChainAssetLockProofFFI { ferment::boxed(platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height, out_point }) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy<>(ffi: *mut platform_mobile_put_ChainAssetLockProofFFI) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height<>(obj: *const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (*obj).core_chain_locked_height } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point<>(obj: *const platform_mobile_put_ChainAssetLockProofFFI) -> *mut platform_mobile::custom::OutPoint { (*obj).out_point } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height<>(obj: *const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (*obj).core_chain_locked_height } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point<>(obj: *const platform_mobile_put_ChainAssetLockProofFFI) -> *mut platform_mobile::custom::OutPoint { (*obj).out_point } - - #[doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone(a: *mut platform_mobile::custom::OutPoint) -> *mut platform_mobile::custom::OutPoint { - let obj = platform_mobile::put::OutPointFFI_clone(>::ffi_from(a)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`OutPointFFI`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_mobile_put_OutPointFFI { - pub txid: *mut crate::fermented::generics::Arr_u8_32, - pub vout: u32, - } - - impl ferment::FFIConversionFrom for platform_mobile_put_OutPointFFI { - unsafe fn ffi_from_const(ffi: *const platform_mobile_put_OutPointFFI) -> platform_mobile::put::OutPointFFI { - let ffi_ref = &*ffi; - platform_mobile::put::OutPointFFI { txid: >::ffi_from(ffi_ref.txid), vout: ffi_ref.vout } - } - } - - impl ferment::FFIConversionTo for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const(obj: platform_mobile::put::OutPointFFI) -> *const platform_mobile_put_OutPointFFI { ferment::boxed(platform_mobile_put_OutPointFFI { txid: >::ffi_to(obj.txid), vout: obj.vout }) } } - - impl Drop for platform_mobile_put_OutPointFFI { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.txid); - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor<>(txid: *mut crate::fermented::generics::Arr_u8_32, vout: u32) -> *mut platform_mobile_put_OutPointFFI { ferment::boxed(platform_mobile_put_OutPointFFI { txid, vout }) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy<>(ffi: *mut platform_mobile_put_OutPointFFI) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid<>(obj: *const platform_mobile_put_OutPointFFI) -> *mut crate::fermented::generics::Arr_u8_32 { (*obj).txid } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout<>(obj: *const platform_mobile_put_OutPointFFI) -> u32 { (*obj).vout } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid<>(obj: *const platform_mobile_put_OutPointFFI) -> *mut crate::fermented::generics::Arr_u8_32 { (*obj).txid } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout<>(obj: *const platform_mobile_put_OutPointFFI) -> u32 { (*obj).vout } - } - - pub mod data_contracts { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone(value: *mut crate::fermented::types::platform_mobile::data_contracts::platform_mobile_data_contracts_DataContractFFI) -> *mut crate::fermented::types::platform_mobile::data_contracts::platform_mobile_data_contracts_DataContractFFI { - let obj = platform_mobile::data_contracts::DataContractFFI_clone(>::ffi_from(value)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract(rust_sdk: *mut platform_mobile::sdk::DashSdk, data_contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::generics::Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { - let obj = platform_mobile::data_contracts::fetch_data_contract(rust_sdk, >::ffi_from(data_contract_id)); - , String>>>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`DataContractFFI`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_mobile_data_contracts_DataContractFFI { - pub id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub owner_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub doc_types: *mut crate::fermented::generics::Vec_String, - pub version: u32, - } - - impl ferment::FFIConversionFrom for platform_mobile_data_contracts_DataContractFFI { - unsafe fn ffi_from_const(ffi: *const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile::data_contracts::DataContractFFI { - let ffi_ref = &*ffi; - platform_mobile::data_contracts::DataContractFFI { id: >::ffi_from(ffi_ref.id), owner_id: >::ffi_from(ffi_ref.owner_id), doc_types: >>::ffi_from(ffi_ref.doc_types), version: ffi_ref.version } - } - } - - impl ferment::FFIConversionTo for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const(obj: platform_mobile::data_contracts::DataContractFFI) -> *const platform_mobile_data_contracts_DataContractFFI { ferment::boxed(platform_mobile_data_contracts_DataContractFFI { id: >::ffi_to(obj.id), owner_id: >::ffi_to(obj.owner_id), doc_types: >>::ffi_to(obj.doc_types), version: obj.version }) } } - - impl Drop for platform_mobile_data_contracts_DataContractFFI { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.id); - ferment::unbox_any(ffi_ref.owner_id); - ferment::unbox_any(ffi_ref.doc_types); - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor<>(id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, owner_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, doc_types: *mut crate::fermented::generics::Vec_String, version: u32) -> *mut platform_mobile_data_contracts_DataContractFFI { ferment::boxed(platform_mobile_data_contracts_DataContractFFI { id, owner_id, doc_types, version }) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy<>(ffi: *mut platform_mobile_data_contracts_DataContractFFI) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id<>(obj: *const platform_mobile_data_contracts_DataContractFFI) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).id } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id<>(obj: *const platform_mobile_data_contracts_DataContractFFI) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).owner_id } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types<>(obj: *const platform_mobile_data_contracts_DataContractFFI) -> *mut crate::fermented::generics::Vec_String { (*obj).doc_types } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version<>(obj: *const platform_mobile_data_contracts_DataContractFFI) -> u32 { (*obj).version } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id<>(obj: *const platform_mobile_data_contracts_DataContractFFI) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).id } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id<>(obj: *const platform_mobile_data_contracts_DataContractFFI) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).owner_id } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types<>(obj: *const platform_mobile_data_contracts_DataContractFFI) -> *mut crate::fermented::generics::Vec_String { (*obj).doc_types } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version<>(obj: *const platform_mobile_data_contracts_DataContractFFI) -> u32 { (*obj).version } - } - - pub mod operators { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_operators_Value_hash(a: *mut crate::fermented::types::platform_value::platform_value_Value) -> i32 { - let obj = platform_mobile::operators::Value_hash(>::ffi_from(a)); - obj - } - - #[doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_operators_Value_eq(a: *mut crate::fermented::types::platform_value::platform_value_Value, b: *mut crate::fermented::types::platform_value::platform_value_Value) -> bool { - let obj = platform_mobile::operators::Value_eq(>::ffi_from(a), >::ffi_from(b)); - obj - } - } - } - - pub mod platform_value { - use crate as dash_sdk_bindings; - - pub mod inner_value_at_path { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum platform_value_Value { U128(*mut [u8; 16]), I128(*mut [u8; 16]), U64(u64), I64(i64), U32(u32), I32(i32), U16(u16), I16(i16), U8(u8), I8(i8), Bytes(*mut crate::fermented::generics::Vec_u8), Bytes20(*mut crate::fermented::generics::Arr_u8_20), Bytes32(*mut crate::fermented::generics::Arr_u8_32), Bytes36(*mut crate::fermented::generics::Arr_u8_36), EnumU8(*mut crate::fermented::generics::Vec_u8), EnumString(*mut crate::fermented::generics::Vec_String), Identifier(*mut crate::fermented::types::platform_value::platform_value_Hash256), Float(f64), Text(*mut std::os::raw::c_char), Bool(bool), Null, Array(*mut crate::fermented::generics::Vec_platform_value_Value), Map(*mut crate::fermented::types::platform_value::value_map::platform_value_value_map_ValueMap) } - - impl ferment::FFIConversionFrom for platform_value_Value { - unsafe fn ffi_from_const(ffi: *const platform_value_Value) -> platform_value::Value { - let ffi_ref = &*ffi; - match ffi_ref { - platform_value_Value::U128(o_0) => platform_value::Value::U128(<[u8; 16] as ferment::FFIConversionFrom>::ffi_from(*o_0)), - platform_value_Value::I128(o_0) => platform_value::Value::I128(<[u8; 16] as ferment::FFIConversionFrom>::ffi_from(*o_0)), - platform_value_Value::U64(o_0) => platform_value::Value::U64(*o_0), - platform_value_Value::I64(o_0) => platform_value::Value::I64(*o_0), - platform_value_Value::U32(o_0) => platform_value::Value::U32(*o_0), - platform_value_Value::I32(o_0) => platform_value::Value::I32(*o_0), - platform_value_Value::U16(o_0) => platform_value::Value::U16(*o_0), - platform_value_Value::I16(o_0) => platform_value::Value::I16(*o_0), - platform_value_Value::U8(o_0) => platform_value::Value::U8(*o_0), - platform_value_Value::I8(o_0) => platform_value::Value::I8(*o_0), - platform_value_Value::Bytes(o_0) => platform_value::Value::Bytes(>>::ffi_from(*o_0)), - platform_value_Value::Bytes20(o_0) => platform_value::Value::Bytes20(>::ffi_from(*o_0)), - platform_value_Value::Bytes32(o_0) => platform_value::Value::Bytes32(>::ffi_from(*o_0)), - platform_value_Value::Bytes36(o_0) => platform_value::Value::Bytes36(>::ffi_from(*o_0)), - platform_value_Value::EnumU8(o_0) => platform_value::Value::EnumU8(>>::ffi_from(*o_0)), - platform_value_Value::EnumString(o_0) => platform_value::Value::EnumString(>>::ffi_from(*o_0)), - platform_value_Value::Identifier(o_0) => platform_value::Value::Identifier(>::ffi_from(*o_0)), - platform_value_Value::Float(o_0) => platform_value::Value::Float(*o_0), - platform_value_Value::Text(o_0) => platform_value::Value::Text(>::ffi_from(*o_0)), - platform_value_Value::Bool(o_0) => platform_value::Value::Bool(*o_0), - platform_value_Value::Null => platform_value::Value::Null, - platform_value_Value::Array(o_0) => platform_value::Value::Array(>>::ffi_from(*o_0)), - platform_value_Value::Map(o_0) => platform_value::Value::Map(>::ffi_from(*o_0)) - } - } - } - - impl ferment::FFIConversionTo for platform_value_Value { - unsafe fn ffi_to_const(obj: platform_value::Value) -> *const platform_value_Value { - ferment::boxed(match obj { - platform_value::Value::U128(o_0) => platform_value_Value::U128(<[u8; 16] as ferment::FFIConversionTo>::ffi_to(o_0)), - platform_value::Value::I128(o_0) => platform_value_Value::I128(<[u8; 16] as ferment::FFIConversionTo>::ffi_to(o_0)), - platform_value::Value::U64(o_0) => platform_value_Value::U64(o_0), - platform_value::Value::I64(o_0) => platform_value_Value::I64(o_0), - platform_value::Value::U32(o_0) => platform_value_Value::U32(o_0), - platform_value::Value::I32(o_0) => platform_value_Value::I32(o_0), - platform_value::Value::U16(o_0) => platform_value_Value::U16(o_0), - platform_value::Value::I16(o_0) => platform_value_Value::I16(o_0), - platform_value::Value::U8(o_0) => platform_value_Value::U8(o_0), - platform_value::Value::I8(o_0) => platform_value_Value::I8(o_0), - platform_value::Value::Bytes(o_0) => platform_value_Value::Bytes(>>::ffi_to(o_0)), - platform_value::Value::Bytes20(o_0) => platform_value_Value::Bytes20(>::ffi_to(o_0)), - platform_value::Value::Bytes32(o_0) => platform_value_Value::Bytes32(>::ffi_to(o_0)), - platform_value::Value::Bytes36(o_0) => platform_value_Value::Bytes36(>::ffi_to(o_0)), - platform_value::Value::EnumU8(o_0) => platform_value_Value::EnumU8(>>::ffi_to(o_0)), - platform_value::Value::EnumString(o_0) => platform_value_Value::EnumString(>>::ffi_to(o_0)), - platform_value::Value::Identifier(o_0) => platform_value_Value::Identifier(>::ffi_to(o_0)), - platform_value::Value::Float(o_0) => platform_value_Value::Float(o_0), - platform_value::Value::Text(o_0) => platform_value_Value::Text(>::ffi_to(o_0)), - platform_value::Value::Bool(o_0) => platform_value_Value::Bool(o_0), - platform_value::Value::Null => platform_value_Value::Null, - platform_value::Value::Array(o_0) => platform_value_Value::Array(>>::ffi_to(o_0)), - platform_value::Value::Map(o_0) => platform_value_Value::Map(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for platform_value_Value { - fn drop(&mut self) { - unsafe { - match self { - platform_value_Value::U128(o_0) => { ferment::unbox_any_opt(*o_0); } - platform_value_Value::I128(o_0) => { ferment::unbox_any_opt(*o_0); } - platform_value_Value::U64(o_0) => { ; } - platform_value_Value::I64(o_0) => { ; } - platform_value_Value::U32(o_0) => { ; } - platform_value_Value::I32(o_0) => { ; } - platform_value_Value::U16(o_0) => { ; } - platform_value_Value::I16(o_0) => { ; } - platform_value_Value::U8(o_0) => { ; } - platform_value_Value::I8(o_0) => { ; } - platform_value_Value::Bytes(o_0) => { ferment::unbox_any(*o_0); } - platform_value_Value::Bytes20(o_0) => { ferment::unbox_any(*o_0); } - platform_value_Value::Bytes32(o_0) => { ferment::unbox_any(*o_0); } - platform_value_Value::Bytes36(o_0) => { ferment::unbox_any(*o_0); } - platform_value_Value::EnumU8(o_0) => { ferment::unbox_any(*o_0); } - platform_value_Value::EnumString(o_0) => { ferment::unbox_any(*o_0); } - platform_value_Value::Identifier(o_0) => { ferment::unbox_any(*o_0); } - platform_value_Value::Float(o_0) => { ; } - platform_value_Value::Text(o_0) => { ferment::unbox_string(*o_0); } - platform_value_Value::Bool(o_0) => { ; } - platform_value_Value::Null => {} - platform_value_Value::Array(o_0) => { ferment::unbox_any(*o_0); } - platform_value_Value::Map(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_U128_ctor(o_o_0: *mut [u8; 16]) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::U128(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_I128_ctor(o_o_0: *mut [u8; 16]) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::I128(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_U64_ctor(o_o_0: u64) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::U64(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_I64_ctor(o_o_0: i64) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::I64(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_U32_ctor(o_o_0: u32) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::U32(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_I32_ctor(o_o_0: i32) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::I32(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_U16_ctor(o_o_0: u16) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::U16(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_I16_ctor(o_o_0: i16) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::I16(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_U8_ctor(o_o_0: u8) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::U8(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_I8_ctor(o_o_0: i8) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::I8(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Bytes_ctor(o_o_0: *mut crate::fermented::generics::Vec_u8) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Bytes(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor(o_o_0: *mut crate::fermented::generics::Arr_u8_20) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Bytes20(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor(o_o_0: *mut crate::fermented::generics::Arr_u8_32) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Bytes32(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor(o_o_0: *mut crate::fermented::generics::Arr_u8_36) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Bytes36(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor(o_o_0: *mut crate::fermented::generics::Vec_u8) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::EnumU8(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_EnumString_ctor(o_o_0: *mut crate::fermented::generics::Vec_String) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::EnumString(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Identifier_ctor(o_o_0: *mut crate::fermented::types::platform_value::platform_value_Hash256) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Identifier(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Float_ctor(o_o_0: f64) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Float(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Text_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Text(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Bool_ctor(o_o_0: bool) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Bool(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Null_ctor() -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Null {}) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Array_ctor(o_o_0: *mut crate::fermented::generics::Vec_platform_value_Value) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Array(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Map_ctor(o_o_0: *mut crate::fermented::types::platform_value::value_map::platform_value_value_map_ValueMap) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Map(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_destroy<>(ffi: *mut platform_value_Value) { ferment::unbox_any(ffi); } - - pub mod types { - use crate as dash_sdk_bindings; - - pub mod bytes_20 { use crate as dash_sdk_bindings; } - - pub mod bytes_36 { use crate as dash_sdk_bindings; } - - pub mod identifier { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`IdentifierBytes32`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_value_types_identifier_IdentifierBytes32(*mut crate::fermented::generics::Arr_u8_32); - - impl ferment::FFIConversionFrom for platform_value_types_identifier_IdentifierBytes32 { - unsafe fn ffi_from_const(ffi: *const platform_value_types_identifier_IdentifierBytes32) -> platform_value::types::identifier::IdentifierBytes32 { - let ffi_ref = &*ffi; - platform_value::types::identifier::IdentifierBytes32(>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const(obj: platform_value::types::identifier::IdentifierBytes32) -> *const platform_value_types_identifier_IdentifierBytes32 { ferment::boxed(platform_value_types_identifier_IdentifierBytes32(>::ffi_to(obj.0))) } } - - impl Drop for platform_value_types_identifier_IdentifierBytes32 { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor<>(o_0: *mut crate::fermented::generics::Arr_u8_32) -> *mut platform_value_types_identifier_IdentifierBytes32 { ferment::boxed(platform_value_types_identifier_IdentifierBytes32(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy<>(ffi: *mut platform_value_types_identifier_IdentifierBytes32) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0<>(obj: *const platform_value_types_identifier_IdentifierBytes32) -> *mut crate::fermented::generics::Arr_u8_32 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0<>(obj: *const platform_value_types_identifier_IdentifierBytes32) -> *mut crate::fermented::generics::Arr_u8_32 { (*obj).0 } - - #[doc = "FFI-representation of the [`Identifier`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_value_types_identifier_Identifier(*mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_IdentifierBytes32); - - impl ferment::FFIConversionFrom for platform_value_types_identifier_Identifier { - unsafe fn ffi_from_const(ffi: *const platform_value_types_identifier_Identifier) -> platform_value::types::identifier::Identifier { - let ffi_ref = &*ffi; - platform_value::types::identifier::Identifier(>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const(obj: platform_value::types::identifier::Identifier) -> *const platform_value_types_identifier_Identifier { ferment::boxed(platform_value_types_identifier_Identifier(>::ffi_to(obj.0))) } } - - impl Drop for platform_value_types_identifier_Identifier { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor<>(o_0: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_IdentifierBytes32) -> *mut platform_value_types_identifier_Identifier { ferment::boxed(platform_value_types_identifier_Identifier(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy<>(ffi: *mut platform_value_types_identifier_Identifier) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0<>(obj: *const platform_value_types_identifier_Identifier) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_IdentifierBytes32 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0<>(obj: *const platform_value_types_identifier_Identifier) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_IdentifierBytes32 { (*obj).0 } - } - - pub mod bytes_32 { use crate as dash_sdk_bindings; } - - pub mod binary_data { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`BinaryData`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_value_types_binary_data_BinaryData(*mut crate::fermented::generics::Vec_u8); - - impl ferment::FFIConversionFrom for platform_value_types_binary_data_BinaryData { - unsafe fn ffi_from_const(ffi: *const platform_value_types_binary_data_BinaryData) -> platform_value::types::binary_data::BinaryData { - let ffi_ref = &*ffi; - platform_value::types::binary_data::BinaryData(>>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const(obj: platform_value::types::binary_data::BinaryData) -> *const platform_value_types_binary_data_BinaryData { ferment::boxed(platform_value_types_binary_data_BinaryData(>>::ffi_to(obj.0))) } } - - impl Drop for platform_value_types_binary_data_BinaryData { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor<>(o_0: *mut crate::fermented::generics::Vec_u8) -> *mut platform_value_types_binary_data_BinaryData { ferment::boxed(platform_value_types_binary_data_BinaryData(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy<>(ffi: *mut platform_value_types_binary_data_BinaryData) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0<>(obj: *const platform_value_types_binary_data_BinaryData) -> *mut crate::fermented::generics::Vec_u8 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0<>(obj: *const platform_value_types_binary_data_BinaryData) -> *mut crate::fermented::generics::Vec_u8 { (*obj).0 } - } - } - - pub mod btreemap_extensions { - use crate as dash_sdk_bindings; - - pub mod btreemap_path_extensions { use crate as dash_sdk_bindings; } - - pub mod btreemap_removal_extensions { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod btreemap_field_replacement { use crate as dash_sdk_bindings; } - } - - pub mod error { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum platform_value_error_Error { Unsupported(*mut std::os::raw::c_char), StructureError(*mut std::os::raw::c_char), PathError(*mut std::os::raw::c_char), IntegerSizeError, IntegerParsingError, StringDecodingError(*mut std::os::raw::c_char), KeyMustBeAString, ByteLengthNot20BytesError(*mut std::os::raw::c_char), ByteLengthNot32BytesError(*mut std::os::raw::c_char), ByteLengthNot36BytesError(*mut std::os::raw::c_char), SerdeSerializationError(*mut std::os::raw::c_char), SerdeDeserializationError(*mut std::os::raw::c_char), CborSerializationError(*mut std::os::raw::c_char) } - - impl ferment::FFIConversionFrom for platform_value_error_Error { - unsafe fn ffi_from_const(ffi: *const platform_value_error_Error) -> platform_value::error::Error { - let ffi_ref = &*ffi; - match ffi_ref { - platform_value_error_Error::Unsupported(o_0) => platform_value::error::Error::Unsupported(>::ffi_from(*o_0)), - platform_value_error_Error::StructureError(o_0) => platform_value::error::Error::StructureError(>::ffi_from(*o_0)), - platform_value_error_Error::PathError(o_0) => platform_value::error::Error::PathError(>::ffi_from(*o_0)), - platform_value_error_Error::IntegerSizeError => platform_value::error::Error::IntegerSizeError, - platform_value_error_Error::IntegerParsingError => platform_value::error::Error::IntegerParsingError, - platform_value_error_Error::StringDecodingError(o_0) => platform_value::error::Error::StringDecodingError(>::ffi_from(*o_0)), - platform_value_error_Error::KeyMustBeAString => platform_value::error::Error::KeyMustBeAString, - platform_value_error_Error::ByteLengthNot20BytesError(o_0) => platform_value::error::Error::ByteLengthNot20BytesError(>::ffi_from(*o_0)), - platform_value_error_Error::ByteLengthNot32BytesError(o_0) => platform_value::error::Error::ByteLengthNot32BytesError(>::ffi_from(*o_0)), - platform_value_error_Error::ByteLengthNot36BytesError(o_0) => platform_value::error::Error::ByteLengthNot36BytesError(>::ffi_from(*o_0)), - platform_value_error_Error::SerdeSerializationError(o_0) => platform_value::error::Error::SerdeSerializationError(>::ffi_from(*o_0)), - platform_value_error_Error::SerdeDeserializationError(o_0) => platform_value::error::Error::SerdeDeserializationError(>::ffi_from(*o_0)), - platform_value_error_Error::CborSerializationError(o_0) => platform_value::error::Error::CborSerializationError(>::ffi_from(*o_0)) - } - } - } - - impl ferment::FFIConversionTo for platform_value_error_Error { - unsafe fn ffi_to_const(obj: platform_value::error::Error) -> *const platform_value_error_Error { - ferment::boxed(match obj { - platform_value::error::Error::Unsupported(o_0) => platform_value_error_Error::Unsupported(>::ffi_to(o_0)), - platform_value::error::Error::StructureError(o_0) => platform_value_error_Error::StructureError(>::ffi_to(o_0)), - platform_value::error::Error::PathError(o_0) => platform_value_error_Error::PathError(>::ffi_to(o_0)), - platform_value::error::Error::IntegerSizeError => platform_value_error_Error::IntegerSizeError, - platform_value::error::Error::IntegerParsingError => platform_value_error_Error::IntegerParsingError, - platform_value::error::Error::StringDecodingError(o_0) => platform_value_error_Error::StringDecodingError(>::ffi_to(o_0)), - platform_value::error::Error::KeyMustBeAString => platform_value_error_Error::KeyMustBeAString, - platform_value::error::Error::ByteLengthNot20BytesError(o_0) => platform_value_error_Error::ByteLengthNot20BytesError(>::ffi_to(o_0)), - platform_value::error::Error::ByteLengthNot32BytesError(o_0) => platform_value_error_Error::ByteLengthNot32BytesError(>::ffi_to(o_0)), - platform_value::error::Error::ByteLengthNot36BytesError(o_0) => platform_value_error_Error::ByteLengthNot36BytesError(>::ffi_to(o_0)), - platform_value::error::Error::SerdeSerializationError(o_0) => platform_value_error_Error::SerdeSerializationError(>::ffi_to(o_0)), - platform_value::error::Error::SerdeDeserializationError(o_0) => platform_value_error_Error::SerdeDeserializationError(>::ffi_to(o_0)), - platform_value::error::Error::CborSerializationError(o_0) => platform_value_error_Error::CborSerializationError(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for platform_value_error_Error { - fn drop(&mut self) { - unsafe { - match self { - platform_value_error_Error::Unsupported(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::StructureError(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::PathError(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::IntegerSizeError => {} - platform_value_error_Error::IntegerParsingError => {} - platform_value_error_Error::StringDecodingError(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::KeyMustBeAString => {} - platform_value_error_Error::ByteLengthNot20BytesError(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::ByteLengthNot32BytesError(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::ByteLengthNot36BytesError(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::SerdeSerializationError(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::SerdeDeserializationError(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::CborSerializationError(o_0) => { ferment::unbox_string(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::Unsupported(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::StructureError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::PathError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor() -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::IntegerSizeError {}) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor() -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::IntegerParsingError {}) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::StringDecodingError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor() -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::KeyMustBeAString {}) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::ByteLengthNot20BytesError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::ByteLengthNot32BytesError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::ByteLengthNot36BytesError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::SerdeSerializationError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::SerdeDeserializationError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::CborSerializationError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_destroy<>(ffi: *mut platform_value_error_Error) { ferment::unbox_any(ffi); } - } - - pub mod patch { - use crate as dash_sdk_bindings; - - pub mod diff { use crate as dash_sdk_bindings; } - } - - pub mod value_map { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`ValueMap`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_value_value_map_ValueMap(*mut crate::fermented::generics::Vec_Tuple_platform_value_Value_platform_value_Value); - - impl ferment::FFIConversionFrom for platform_value_value_map_ValueMap { - unsafe fn ffi_from_const(ffi: *const platform_value_value_map_ValueMap) -> platform_value::value_map::ValueMap { - let ffi_ref = &*ffi; - >>::ffi_from(ffi_ref.0) - } - } - - impl ferment::FFIConversionTo for platform_value_value_map_ValueMap { unsafe fn ffi_to_const(obj: platform_value::value_map::ValueMap) -> *const platform_value_value_map_ValueMap { ferment::boxed(platform_value_value_map_ValueMap(>>::ffi_to(obj))) } } - - impl Drop for platform_value_value_map_ValueMap { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor<>(o_0: *mut crate::fermented::generics::Vec_Tuple_platform_value_Value_platform_value_Value) -> *mut platform_value_value_map_ValueMap { ferment::boxed(platform_value_value_map_ValueMap(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy<>(ffi: *mut platform_value_value_map_ValueMap) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0<>(obj: *const platform_value_value_map_ValueMap) -> *mut crate::fermented::generics::Vec_Tuple_platform_value_Value_platform_value_Value { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0<>(obj: *const platform_value_value_map_ValueMap) -> *mut crate::fermented::generics::Vec_Tuple_platform_value_Value_platform_value_Value { (*obj).0 } - } - - pub mod pointer { use crate as dash_sdk_bindings; } - - pub mod macros { use crate as dash_sdk_bindings; } - - #[doc = "FFI-representation of the [`Hash256`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_value_Hash256(*mut crate::fermented::generics::Arr_u8_32); - - impl ferment::FFIConversionFrom for platform_value_Hash256 { - unsafe fn ffi_from_const(ffi: *const platform_value_Hash256) -> platform_value::Hash256 { - let ffi_ref = &*ffi; - >::ffi_from(ffi_ref.0) - } - } - - impl ferment::FFIConversionTo for platform_value_Hash256 { unsafe fn ffi_to_const(obj: platform_value::Hash256) -> *const platform_value_Hash256 { ferment::boxed(platform_value_Hash256(>::ffi_to(obj))) } } - - impl Drop for platform_value_Hash256 { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Hash256_ctor<>(o_0: *mut crate::fermented::generics::Arr_u8_32) -> *mut platform_value_Hash256 { ferment::boxed(platform_value_Hash256(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Hash256_destroy<>(ffi: *mut platform_value_Hash256) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Hash256_get_0<>(obj: *const platform_value_Hash256) -> *mut crate::fermented::generics::Arr_u8_32 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Hash256_set_0<>(obj: *const platform_value_Hash256) -> *mut crate::fermented::generics::Arr_u8_32 { (*obj).0 } - - pub mod index { use crate as dash_sdk_bindings; } - - pub mod inner_value { use crate as dash_sdk_bindings; } - - pub mod value_serialization { - use crate as dash_sdk_bindings; - - pub mod de { use crate as dash_sdk_bindings; } - - pub mod ser { use crate as dash_sdk_bindings; } - } - - pub mod system_bytes { use crate as dash_sdk_bindings; } - - pub mod replace { use crate as dash_sdk_bindings; } - - pub mod converter { - use crate as dash_sdk_bindings; - - #[cfg(feature = "json")] - pub mod serde_json { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "cbor")] - pub mod ciborium { - use crate as dash_sdk_bindings; - } - } - - pub mod eq { use crate as dash_sdk_bindings; } - } - - pub mod drive_proof_verifier { - use crate as dash_sdk_bindings; - - pub mod from_request { use crate as dash_sdk_bindings; } - - pub mod unproved { use crate as dash_sdk_bindings; } - - pub mod proof { use crate as dash_sdk_bindings; } - - pub mod types { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`ContestedResources`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_proof_verifier_types_ContestedResources(*mut crate::fermented::generics::Vec_drive_proof_verifier_types_ContestedResource); - - impl ferment::FFIConversionFrom for drive_proof_verifier_types_ContestedResources { - unsafe fn ffi_from_const(ffi: *const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier::types::ContestedResources { - let ffi_ref = &*ffi; - drive_proof_verifier::types::ContestedResources(>>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const(obj: drive_proof_verifier::types::ContestedResources) -> *const drive_proof_verifier_types_ContestedResources { ferment::boxed(drive_proof_verifier_types_ContestedResources(>>::ffi_to(obj.0))) } } - - impl Drop for drive_proof_verifier_types_ContestedResources { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor<>(o_0: *mut crate::fermented::generics::Vec_drive_proof_verifier_types_ContestedResource) -> *mut drive_proof_verifier_types_ContestedResources { ferment::boxed(drive_proof_verifier_types_ContestedResources(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy<>(ffi: *mut drive_proof_verifier_types_ContestedResources) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0<>(obj: *const drive_proof_verifier_types_ContestedResources) -> *mut crate::fermented::generics::Vec_drive_proof_verifier_types_ContestedResource { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0<>(obj: *const drive_proof_verifier_types_ContestedResources) -> *mut crate::fermented::generics::Vec_drive_proof_verifier_types_ContestedResource { (*obj).0 } - - #[doc = "FFI-representation of the [`ContestedResource`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_proof_verifier_types_ContestedResource(*mut crate::fermented::types::platform_value::platform_value_Value); - - impl ferment::FFIConversionFrom for drive_proof_verifier_types_ContestedResource { - unsafe fn ffi_from_const(ffi: *const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier::types::ContestedResource { - let ffi_ref = &*ffi; - drive_proof_verifier::types::ContestedResource(>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const(obj: drive_proof_verifier::types::ContestedResource) -> *const drive_proof_verifier_types_ContestedResource { ferment::boxed(drive_proof_verifier_types_ContestedResource(>::ffi_to(obj.0))) } } - - impl Drop for drive_proof_verifier_types_ContestedResource { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor<>(o_0: *mut crate::fermented::types::platform_value::platform_value_Value) -> *mut drive_proof_verifier_types_ContestedResource { ferment::boxed(drive_proof_verifier_types_ContestedResource(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy<>(ffi: *mut drive_proof_verifier_types_ContestedResource) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0<>(obj: *const drive_proof_verifier_types_ContestedResource) -> *mut crate::fermented::types::platform_value::platform_value_Value { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0<>(obj: *const drive_proof_verifier_types_ContestedResource) -> *mut crate::fermented::types::platform_value::platform_value_Value { (*obj).0 } - - #[doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_proof_verifier_types_ResourceVotesByIdentity(*mut crate::fermented::generics::std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote); - - impl ferment::FFIConversionFrom for drive_proof_verifier_types_ResourceVotesByIdentity { - unsafe fn ffi_from_const(ffi: *const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier::types::ResourceVotesByIdentity { - let ffi_ref = &*ffi; - >>>::ffi_from(ffi_ref.0) - } - } - - impl ferment::FFIConversionTo for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const(obj: drive_proof_verifier::types::ResourceVotesByIdentity) -> *const drive_proof_verifier_types_ResourceVotesByIdentity { ferment::boxed(drive_proof_verifier_types_ResourceVotesByIdentity(>>>::ffi_to(obj))) } } - - impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor<>(o_0: *mut crate::fermented::generics::std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> *mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment::boxed(drive_proof_verifier_types_ResourceVotesByIdentity(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy<>(ffi: *mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0<>(obj: *const drive_proof_verifier_types_ResourceVotesByIdentity) -> *mut crate::fermented::generics::std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0<>(obj: *const drive_proof_verifier_types_ResourceVotesByIdentity) -> *mut crate::fermented::generics::std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (*obj).0 } - - #[doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp(*mut crate::fermented::generics::Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll); - - impl ferment::FFIConversionFrom for drive_proof_verifier_types_VotePollsGroupedByTimestamp { - unsafe fn ffi_from_const(ffi: *const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier::types::VotePollsGroupedByTimestamp { - let ffi_ref = &*ffi; - drive_proof_verifier::types::VotePollsGroupedByTimestamp()>>>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const(obj: drive_proof_verifier::types::VotePollsGroupedByTimestamp) -> *const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment::boxed(drive_proof_verifier_types_VotePollsGroupedByTimestamp()>>>::ffi_to(obj.0))) } } - - impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor<>(o_0: *mut crate::fermented::generics::Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> *mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment::boxed(drive_proof_verifier_types_VotePollsGroupedByTimestamp(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy<>(ffi: *mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0<>(obj: *const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> *mut crate::fermented::generics::Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0<>(obj: *const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> *mut crate::fermented::generics::Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (*obj).0 } - - #[doc = "FFI-representation of the [`Voters`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_proof_verifier_types_Voters(*mut crate::fermented::generics::std_collections_BTreeSet_drive_proof_verifier_types_Voter); - - impl ferment::FFIConversionFrom for drive_proof_verifier_types_Voters { - unsafe fn ffi_from_const(ffi: *const drive_proof_verifier_types_Voters) -> drive_proof_verifier::types::Voters { - let ffi_ref = &*ffi; - drive_proof_verifier::types::Voters(>>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const(obj: drive_proof_verifier::types::Voters) -> *const drive_proof_verifier_types_Voters { ferment::boxed(drive_proof_verifier_types_Voters(>>::ffi_to(obj.0))) } } - - impl Drop for drive_proof_verifier_types_Voters { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor<>(o_0: *mut crate::fermented::generics::std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> *mut drive_proof_verifier_types_Voters { ferment::boxed(drive_proof_verifier_types_Voters(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy<>(ffi: *mut drive_proof_verifier_types_Voters) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0<>(obj: *const drive_proof_verifier_types_Voters) -> *mut crate::fermented::generics::std_collections_BTreeSet_drive_proof_verifier_types_Voter { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0<>(obj: *const drive_proof_verifier_types_Voters) -> *mut crate::fermented::generics::std_collections_BTreeSet_drive_proof_verifier_types_Voter { (*obj).0 } - - #[doc = "FFI-representation of the [`Contenders`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_proof_verifier_types_Contenders { - pub winner: *mut crate::fermented::generics::Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo, - pub contenders: *mut crate::fermented::generics::std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument, - pub abstain_vote_tally: *mut u32, - pub lock_vote_tally: *mut u32, - } - - impl ferment::FFIConversionFrom for drive_proof_verifier_types_Contenders { - unsafe fn ffi_from_const(ffi: *const drive_proof_verifier_types_Contenders) -> drive_proof_verifier::types::Contenders { - let ffi_ref = &*ffi; - drive_proof_verifier::types::Contenders { - winner: >::ffi_from_opt(ffi_ref.winner), - contenders: >>::ffi_from(ffi_ref.contenders), - abstain_vote_tally: ferment::from_opt_primitive(ffi_ref.abstain_vote_tally), - lock_vote_tally: ferment::from_opt_primitive(ffi_ref.lock_vote_tally), - } - } - } - - impl ferment::FFIConversionTo for drive_proof_verifier_types_Contenders { - unsafe fn ffi_to_const(obj: drive_proof_verifier::types::Contenders) -> *const drive_proof_verifier_types_Contenders { - ferment::boxed(drive_proof_verifier_types_Contenders { winner: >::ffi_to_opt(obj.winner), contenders: >>::ffi_to(obj.contenders), abstain_vote_tally: ferment::to_opt_primitive(obj.abstain_vote_tally), lock_vote_tally: ferment::to_opt_primitive(obj.lock_vote_tally) }) - } - } - - impl Drop for drive_proof_verifier_types_Contenders { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any_opt(ffi_ref.winner); - ferment::unbox_any(ffi_ref.contenders); - ferment::destroy_opt_primitive(ffi_ref.abstain_vote_tally); - ferment::destroy_opt_primitive(ffi_ref.lock_vote_tally); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor<>(winner: *mut crate::fermented::generics::Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo, contenders: *mut crate::fermented::generics::std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument, abstain_vote_tally: *mut u32, lock_vote_tally: *mut u32) -> *mut drive_proof_verifier_types_Contenders { ferment::boxed(drive_proof_verifier_types_Contenders { winner, contenders, abstain_vote_tally, lock_vote_tally }) } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy<>(ffi: *mut drive_proof_verifier_types_Contenders) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner<>(obj: *const drive_proof_verifier_types_Contenders) -> *mut crate::fermented::generics::Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (*obj).winner } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders<>(obj: *const drive_proof_verifier_types_Contenders) -> *mut crate::fermented::generics::std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (*obj).contenders } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally<>(obj: *const drive_proof_verifier_types_Contenders) -> *mut u32 { (*obj).abstain_vote_tally } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally<>(obj: *const drive_proof_verifier_types_Contenders) -> *mut u32 { (*obj).lock_vote_tally } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner<>(obj: *const drive_proof_verifier_types_Contenders) -> *mut crate::fermented::generics::Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (*obj).winner } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders<>(obj: *const drive_proof_verifier_types_Contenders) -> *mut crate::fermented::generics::std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (*obj).contenders } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally<>(obj: *const drive_proof_verifier_types_Contenders) -> *mut u32 { (*obj).abstain_vote_tally } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally<>(obj: *const drive_proof_verifier_types_Contenders) -> *mut u32 { (*obj).lock_vote_tally } - - #[doc = "FFI-representation of the [`Voter`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_proof_verifier_types_Voter(*mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier); - - impl ferment::FFIConversionFrom for drive_proof_verifier_types_Voter { - unsafe fn ffi_from_const(ffi: *const drive_proof_verifier_types_Voter) -> drive_proof_verifier::types::Voter { - let ffi_ref = &*ffi; - drive_proof_verifier::types::Voter(>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const(obj: drive_proof_verifier::types::Voter) -> *const drive_proof_verifier_types_Voter { ferment::boxed(drive_proof_verifier_types_Voter(>::ffi_to(obj.0))) } } - - impl Drop for drive_proof_verifier_types_Voter { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor<>(o_0: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut drive_proof_verifier_types_Voter { ferment::boxed(drive_proof_verifier_types_Voter(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy<>(ffi: *mut drive_proof_verifier_types_Voter) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0<>(obj: *const drive_proof_verifier_types_Voter) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0<>(obj: *const drive_proof_verifier_types_Voter) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).0 } - } - - pub mod verify { use crate as dash_sdk_bindings; } - - pub mod error { use crate as dash_sdk_bindings; } - } - - pub mod dash_sdk { - use crate as dash_sdk_bindings; - - pub mod error { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod platform { - use crate as dash_sdk_bindings; - - pub mod tokens { - use crate as dash_sdk_bindings; - - pub mod builders { use crate as dash_sdk_bindings; } - - pub mod transitions { use crate as dash_sdk_bindings; } - } - - pub mod documents { - use crate as dash_sdk_bindings; - - pub mod document_average { use crate as dash_sdk_bindings; } - - pub mod transitions { use crate as dash_sdk_bindings; } - - pub mod document_sum { use crate as dash_sdk_bindings; } - } - - pub mod address_sync { use crate as dash_sdk_bindings; } - - pub mod trunk_branch_sync { - use crate as dash_sdk_bindings; - - pub mod tracker { use crate as dash_sdk_bindings; } - } - - pub mod types { - use crate as dash_sdk_bindings; - - pub mod identity { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`PublicKeyHash`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dash_sdk_platform_types_identity_PublicKeyHash(*mut crate::fermented::generics::Arr_u8_20); - - impl ferment::FFIConversionFrom for dash_sdk_platform_types_identity_PublicKeyHash { - unsafe fn ffi_from_const(ffi: *const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk::platform::types::identity::PublicKeyHash { - let ffi_ref = &*ffi; - dash_sdk::platform::types::identity::PublicKeyHash(>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const(obj: dash_sdk::platform::types::identity::PublicKeyHash) -> *const dash_sdk_platform_types_identity_PublicKeyHash { ferment::boxed(dash_sdk_platform_types_identity_PublicKeyHash(>::ffi_to(obj.0))) } } - - impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor<>(o_0: *mut crate::fermented::generics::Arr_u8_20) -> *mut dash_sdk_platform_types_identity_PublicKeyHash { ferment::boxed(dash_sdk_platform_types_identity_PublicKeyHash(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy<>(ffi: *mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0<>(obj: *const dash_sdk_platform_types_identity_PublicKeyHash) -> *mut crate::fermented::generics::Arr_u8_20 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0<>(obj: *const dash_sdk_platform_types_identity_PublicKeyHash) -> *mut crate::fermented::generics::Arr_u8_20 { (*obj).0 } - } - } - - pub mod dashpay { - use crate as dash_sdk_bindings; - - pub mod contact_request { use crate as dash_sdk_bindings; } - } - - pub mod dpns_usernames { use crate as dash_sdk_bindings; } - - #[cfg(feature = "shielded")] - pub mod shielded { - use crate as dash_sdk_bindings; - - pub mod notes_sync { - use crate as dash_sdk_bindings; - - pub mod sync_shielded_notes { use crate as dash_sdk_bindings; } - } - } - - pub mod transition { use crate as dash_sdk_bindings; } - } - - pub mod mock { - use crate as dash_sdk_bindings; - - #[cfg(feature = "mocks")] - pub mod sdk { - use crate as dash_sdk_bindings; - } - } - - pub mod core { use crate as dash_sdk_bindings; } - - pub mod sdk { use crate as dash_sdk_bindings; } - - pub mod internal_cache { use crate as dash_sdk_bindings; } - - pub mod sync { use crate as dash_sdk_bindings; } - } - - pub mod dpp { - use crate as dash_sdk_bindings; - - pub mod block { - use crate as dash_sdk_bindings; - - pub mod extended_block_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod extended_epoch_info { use crate as dash_sdk_bindings; } - - pub mod epoch { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`Epoch`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_block_epoch_Epoch { - pub index: *mut crate::fermented::types::dpp::block::epoch::dpp_block_epoch_EpochIndex, - pub key: *mut crate::fermented::generics::Arr_u8_2, - } - - impl ferment::FFIConversionFrom for dpp_block_epoch_Epoch { - unsafe fn ffi_from_const(ffi: *const dpp_block_epoch_Epoch) -> dpp::block::epoch::Epoch { - let ffi_ref = &*ffi; - dpp::block::epoch::Epoch { index: >::ffi_from(ffi_ref.index), key: >::ffi_from(ffi_ref.key) } - } - } - - impl ferment::FFIConversionTo for dpp_block_epoch_Epoch { unsafe fn ffi_to_const(obj: dpp::block::epoch::Epoch) -> *const dpp_block_epoch_Epoch { ferment::boxed(dpp_block_epoch_Epoch { index: >::ffi_to(obj.index), key: >::ffi_to(obj.key) }) } } - - impl Drop for dpp_block_epoch_Epoch { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.index); - ferment::unbox_any(ffi_ref.key); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor<>(index: *mut crate::fermented::types::dpp::block::epoch::dpp_block_epoch_EpochIndex, key: *mut crate::fermented::generics::Arr_u8_2) -> *mut dpp_block_epoch_Epoch { ferment::boxed(dpp_block_epoch_Epoch { index, key }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy<>(ffi: *mut dpp_block_epoch_Epoch) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index<>(obj: *const dpp_block_epoch_Epoch) -> *mut crate::fermented::types::dpp::block::epoch::dpp_block_epoch_EpochIndex { (*obj).index } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key<>(obj: *const dpp_block_epoch_Epoch) -> *mut crate::fermented::generics::Arr_u8_2 { (*obj).key } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index<>(obj: *const dpp_block_epoch_Epoch) -> *mut crate::fermented::types::dpp::block::epoch::dpp_block_epoch_EpochIndex { (*obj).index } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key<>(obj: *const dpp_block_epoch_Epoch) -> *mut crate::fermented::generics::Arr_u8_2 { (*obj).key } - - #[doc = "FFI-representation of the [`EpochIndex`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_block_epoch_EpochIndex(u16); - - impl ferment::FFIConversionFrom for dpp_block_epoch_EpochIndex { - unsafe fn ffi_from_const(ffi: *const dpp_block_epoch_EpochIndex) -> dpp::block::epoch::EpochIndex { - let ffi_ref = &*ffi; - ffi_ref.0 - } - } - - impl ferment::FFIConversionTo for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const(obj: dpp::block::epoch::EpochIndex) -> *const dpp_block_epoch_EpochIndex { ferment::boxed(dpp_block_epoch_EpochIndex(obj)) } } - - impl Drop for dpp_block_epoch_EpochIndex { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor<>(o_0: u16) -> *mut dpp_block_epoch_EpochIndex { ferment::boxed(dpp_block_epoch_EpochIndex(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy<>(ffi: *mut dpp_block_epoch_EpochIndex) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0<>(obj: *const dpp_block_epoch_EpochIndex) -> u16 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0<>(obj: *const dpp_block_epoch_EpochIndex) -> u16 { (*obj).0 } - } - - pub mod finalized_epoch_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod block_info { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`BlockInfo`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_block_block_info_BlockInfo { - pub time_ms: *mut crate::fermented::types::dpp::prelude::dpp_prelude_TimestampMillis, - pub height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, - pub core_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, - pub epoch: *mut crate::fermented::types::dpp::block::epoch::dpp_block_epoch_Epoch, - } - - impl ferment::FFIConversionFrom for dpp_block_block_info_BlockInfo { - unsafe fn ffi_from_const(ffi: *const dpp_block_block_info_BlockInfo) -> dpp::block::block_info::BlockInfo { - let ffi_ref = &*ffi; - dpp::block::block_info::BlockInfo { time_ms: >::ffi_from(ffi_ref.time_ms), height: >::ffi_from(ffi_ref.height), core_height: >::ffi_from(ffi_ref.core_height), epoch: >::ffi_from(ffi_ref.epoch) } - } - } - - impl ferment::FFIConversionTo for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const(obj: dpp::block::block_info::BlockInfo) -> *const dpp_block_block_info_BlockInfo { ferment::boxed(dpp_block_block_info_BlockInfo { time_ms: >::ffi_to(obj.time_ms), height: >::ffi_to(obj.height), core_height: >::ffi_to(obj.core_height), epoch: >::ffi_to(obj.epoch) }) } } - - impl Drop for dpp_block_block_info_BlockInfo { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.time_ms); - ferment::unbox_any(ffi_ref.height); - ferment::unbox_any(ffi_ref.core_height); - ferment::unbox_any(ffi_ref.epoch); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor<>(time_ms: *mut crate::fermented::types::dpp::prelude::dpp_prelude_TimestampMillis, height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, core_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, epoch: *mut crate::fermented::types::dpp::block::epoch::dpp_block_epoch_Epoch) -> *mut dpp_block_block_info_BlockInfo { ferment::boxed(dpp_block_block_info_BlockInfo { time_ms, height, core_height, epoch }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy<>(ffi: *mut dpp_block_block_info_BlockInfo) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms<>(obj: *const dpp_block_block_info_BlockInfo) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_TimestampMillis { (*obj).time_ms } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height<>(obj: *const dpp_block_block_info_BlockInfo) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { (*obj).height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height<>(obj: *const dpp_block_block_info_BlockInfo) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { (*obj).core_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch<>(obj: *const dpp_block_block_info_BlockInfo) -> *mut crate::fermented::types::dpp::block::epoch::dpp_block_epoch_Epoch { (*obj).epoch } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms<>(obj: *const dpp_block_block_info_BlockInfo) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_TimestampMillis { (*obj).time_ms } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height<>(obj: *const dpp_block_block_info_BlockInfo) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { (*obj).height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height<>(obj: *const dpp_block_block_info_BlockInfo) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { (*obj).core_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch<>(obj: *const dpp_block_block_info_BlockInfo) -> *mut crate::fermented::types::dpp::block::epoch::dpp_block_epoch_Epoch { (*obj).epoch } - } - } - - pub mod errors { - use crate as dash_sdk_bindings; - - pub mod consensus { - use crate as dash_sdk_bindings; - - pub mod fee { use crate as dash_sdk_bindings; } - - pub mod basic { - use crate as dash_sdk_bindings; - - pub mod state_transition { use crate as dash_sdk_bindings; } - - pub mod group { use crate as dash_sdk_bindings; } - - pub mod decode { use crate as dash_sdk_bindings; } - - pub mod unsupported_version_error { use crate as dash_sdk_bindings; } - - pub mod document { use crate as dash_sdk_bindings; } - - pub mod token { use crate as dash_sdk_bindings; } - - pub mod data_contract { use crate as dash_sdk_bindings; } - - pub mod identity { use crate as dash_sdk_bindings; } - - pub mod json_schema_error { use crate as dash_sdk_bindings; } - - pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings; } - } - - pub mod signature { use crate as dash_sdk_bindings; } - - pub mod state { - use crate as dash_sdk_bindings; - - pub mod data_contract { use crate as dash_sdk_bindings; } - - pub mod shielded { use crate as dash_sdk_bindings; } - - pub mod address_funds { use crate as dash_sdk_bindings; } - - pub mod group { use crate as dash_sdk_bindings; } - - pub mod data_trigger { use crate as dash_sdk_bindings; } - - pub mod token { use crate as dash_sdk_bindings; } - - pub mod identity { use crate as dash_sdk_bindings; } - - pub mod document { use crate as dash_sdk_bindings; } - - pub mod voting { use crate as dash_sdk_bindings; } - - pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings; } - } - } - - pub mod non_consensus_error { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "fixtures-and-mocks")] - pub mod tests { - use crate as dash_sdk_bindings; - - pub mod fixtures { use crate as dash_sdk_bindings; } - } - - pub mod voting { - use crate as dash_sdk_bindings; - - pub mod votes { - use crate as dash_sdk_bindings; - - pub mod resource_vote { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`ResourceVoteV0`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { - pub vote_poll: *mut crate::fermented::types::dpp::voting::vote_polls::dpp_voting_vote_polls_VotePoll, - pub resource_vote_choice: *mut crate::fermented::types::dpp::voting::vote_choices::resource_vote_choice::dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice, - } - - impl ferment::FFIConversionFrom for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { - unsafe fn ffi_from_const(ffi: *const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp::voting::votes::resource_vote::v0::ResourceVoteV0 { - let ffi_ref = &*ffi; - dpp::voting::votes::resource_vote::v0::ResourceVoteV0 { vote_poll: >::ffi_from(ffi_ref.vote_poll), resource_vote_choice: >::ffi_from(ffi_ref.resource_vote_choice) } - } - } - - impl ferment::FFIConversionTo for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const(obj: dpp::voting::votes::resource_vote::v0::ResourceVoteV0) -> *const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment::boxed(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll: >::ffi_to(obj.vote_poll), resource_vote_choice: >::ffi_to(obj.resource_vote_choice) }) } } - - impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.vote_poll); - ferment::unbox_any(ffi_ref.resource_vote_choice); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor<>(vote_poll: *mut crate::fermented::types::dpp::voting::vote_polls::dpp_voting_vote_polls_VotePoll, resource_vote_choice: *mut crate::fermented::types::dpp::voting::vote_choices::resource_vote_choice::dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> *mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment::boxed(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll, resource_vote_choice }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy<>(ffi: *mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll<>(obj: *const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> *mut crate::fermented::types::dpp::voting::vote_polls::dpp_voting_vote_polls_VotePoll { (*obj).vote_poll } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice<>(obj: *const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> *mut crate::fermented::types::dpp::voting::vote_choices::resource_vote_choice::dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (*obj).resource_vote_choice } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll<>(obj: *const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> *mut crate::fermented::types::dpp::voting::vote_polls::dpp_voting_vote_polls_VotePoll { (*obj).vote_poll } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice<>(obj: *const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> *mut crate::fermented::types::dpp::voting::vote_choices::resource_vote_choice::dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (*obj).resource_vote_choice } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_voting_votes_resource_vote_ResourceVote { V0(*mut crate::fermented::types::dpp::voting::votes::resource_vote::v0::dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } - - impl ferment::FFIConversionFrom for dpp_voting_votes_resource_vote_ResourceVote { - unsafe fn ffi_from_const(ffi: *const dpp_voting_votes_resource_vote_ResourceVote) -> dpp::voting::votes::resource_vote::ResourceVote { - let ffi_ref = &*ffi; - match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote::V0(o_0) => dpp::voting::votes::resource_vote::ResourceVote::V0(>::ffi_from(*o_0)) } - } - } - - impl ferment::FFIConversionTo for dpp_voting_votes_resource_vote_ResourceVote { - unsafe fn ffi_to_const(obj: dpp::voting::votes::resource_vote::ResourceVote) -> *const dpp_voting_votes_resource_vote_ResourceVote { - ferment::boxed(match obj { - dpp::voting::votes::resource_vote::ResourceVote::V0(o_0) => dpp_voting_votes_resource_vote_ResourceVote::V0(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_voting_votes_resource_vote_ResourceVote { - fn drop(&mut self) { - unsafe { - match self { - dpp_voting_votes_resource_vote_ResourceVote::V0(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor(o_o_0: *mut crate::fermented::types::dpp::voting::votes::resource_vote::v0::dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> *mut dpp_voting_votes_resource_vote_ResourceVote { ferment::boxed(dpp_voting_votes_resource_vote_ResourceVote::V0(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy<>(ffi: *mut dpp_voting_votes_resource_vote_ResourceVote) { ferment::unbox_any(ffi); } - } - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_voting_votes_Vote { ResourceVote(*mut crate::fermented::types::dpp::voting::votes::resource_vote::dpp_voting_votes_resource_vote_ResourceVote) } - - impl ferment::FFIConversionFrom for dpp_voting_votes_Vote { - unsafe fn ffi_from_const(ffi: *const dpp_voting_votes_Vote) -> dpp::voting::votes::Vote { - let ffi_ref = &*ffi; - match ffi_ref { dpp_voting_votes_Vote::ResourceVote(o_0) => dpp::voting::votes::Vote::ResourceVote(>::ffi_from(*o_0)) } - } - } - - impl ferment::FFIConversionTo for dpp_voting_votes_Vote { - unsafe fn ffi_to_const(obj: dpp::voting::votes::Vote) -> *const dpp_voting_votes_Vote { - ferment::boxed(match obj { - dpp::voting::votes::Vote::ResourceVote(o_0) => dpp_voting_votes_Vote::ResourceVote(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_voting_votes_Vote { - fn drop(&mut self) { - unsafe { - match self { - dpp_voting_votes_Vote::ResourceVote(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor(o_o_0: *mut crate::fermented::types::dpp::voting::votes::resource_vote::dpp_voting_votes_resource_vote_ResourceVote) -> *mut dpp_voting_votes_Vote { ferment::boxed(dpp_voting_votes_Vote::ResourceVote(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy<>(ffi: *mut dpp_voting_votes_Vote) { ferment::unbox_any(ffi); } - } - - pub mod vote_info_storage { - use crate as dash_sdk_bindings; - - pub mod contested_document_vote_poll_winner_info { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner, WonByIdentity(*mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier), Locked } - - impl ferment::FFIConversionFrom for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { - unsafe fn ffi_from_const(ffi: *const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo { - let ffi_ref = &*ffi; - match ffi_ref { - dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::NoWinner => dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo::NoWinner, - dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::WonByIdentity(o_0) => dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo::WonByIdentity(>::ffi_from(*o_0)), - dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::Locked => dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo::Locked - } - } - } - - impl ferment::FFIConversionTo for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { - unsafe fn ffi_to_const(obj: dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo) -> *const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { - ferment::boxed(match obj { - dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo::NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::NoWinner, - dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo::WonByIdentity(o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::WonByIdentity(>::ffi_to(o_0)), - dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo::Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::Locked, - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { - fn drop(&mut self) { - unsafe { - match self { - dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::NoWinner => {} - dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::WonByIdentity(o_0) => { ferment::unbox_any(*o_0); } - dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::Locked => {} - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor() -> *mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment::boxed(dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::NoWinner {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor(o_o_0: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment::boxed(dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::WonByIdentity(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor() -> *mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment::boxed(dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::Locked {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy<>(ffi: *mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment::unbox_any(ffi); } - } - - pub mod contested_document_vote_poll_stored_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod vote_polls { - use crate as dash_sdk_bindings; - - pub mod contested_document_resource_vote_poll { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { - pub contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub document_type_name: *mut std::os::raw::c_char, - pub index_name: *mut std::os::raw::c_char, - pub index_values: *mut crate::fermented::generics::Vec_platform_value_Value, - } - - impl ferment::FFIConversionFrom for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { - unsafe fn ffi_from_const(ffi: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp::voting::vote_polls::contested_document_resource_vote_poll::ContestedDocumentResourceVotePoll { - let ffi_ref = &*ffi; - dpp::voting::vote_polls::contested_document_resource_vote_poll::ContestedDocumentResourceVotePoll { contract_id: >::ffi_from(ffi_ref.contract_id), document_type_name: >::ffi_from(ffi_ref.document_type_name), index_name: >::ffi_from(ffi_ref.index_name), index_values: >>::ffi_from(ffi_ref.index_values) } - } - } - - impl ferment::FFIConversionTo for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { - unsafe fn ffi_to_const(obj: dpp::voting::vote_polls::contested_document_resource_vote_poll::ContestedDocumentResourceVotePoll) -> *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment::boxed(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id: >::ffi_to(obj.contract_id), document_type_name: >::ffi_to(obj.document_type_name), index_name: >::ffi_to(obj.index_name), index_values: >>::ffi_to(obj.index_values) }) } - } - - impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.contract_id); - ferment::unbox_string(ffi_ref.document_type_name); - ferment::unbox_string(ffi_ref.index_name); - ferment::unbox_any(ffi_ref.index_values); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor<>(contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, document_type_name: *mut std::os::raw::c_char, index_name: *mut std::os::raw::c_char, index_values: *mut crate::fermented::generics::Vec_platform_value_Value) -> *mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment::boxed(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id, document_type_name, index_name, index_values }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy<>(ffi: *mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id<>(obj: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).contract_id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name<>(obj: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut std::os::raw::c_char { (*obj).document_type_name } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name<>(obj: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut std::os::raw::c_char { (*obj).index_name } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values<>(obj: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut crate::fermented::generics::Vec_platform_value_Value { (*obj).index_values } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id<>(obj: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).contract_id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name<>(obj: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut std::os::raw::c_char { (*obj).document_type_name } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name<>(obj: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut std::os::raw::c_char { (*obj).index_name } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values<>(obj: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut crate::fermented::generics::Vec_platform_value_Value { (*obj).index_values } - } - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll(*mut crate::fermented::types::dpp::voting::vote_polls::contested_document_resource_vote_poll::dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } - - impl ferment::FFIConversionFrom for dpp_voting_vote_polls_VotePoll { - unsafe fn ffi_from_const(ffi: *const dpp_voting_vote_polls_VotePoll) -> dpp::voting::vote_polls::VotePoll { - let ffi_ref = &*ffi; - match ffi_ref { dpp_voting_vote_polls_VotePoll::ContestedDocumentResourceVotePoll(o_0) => dpp::voting::vote_polls::VotePoll::ContestedDocumentResourceVotePoll(>::ffi_from(*o_0)) } - } - } - - impl ferment::FFIConversionTo for dpp_voting_vote_polls_VotePoll { - unsafe fn ffi_to_const(obj: dpp::voting::vote_polls::VotePoll) -> *const dpp_voting_vote_polls_VotePoll { - ferment::boxed(match obj { - dpp::voting::vote_polls::VotePoll::ContestedDocumentResourceVotePoll(o_0) => dpp_voting_vote_polls_VotePoll::ContestedDocumentResourceVotePoll(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_voting_vote_polls_VotePoll { - fn drop(&mut self) { - unsafe { - match self { - dpp_voting_vote_polls_VotePoll::ContestedDocumentResourceVotePoll(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor(o_o_0: *mut crate::fermented::types::dpp::voting::vote_polls::contested_document_resource_vote_poll::dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut dpp_voting_vote_polls_VotePoll { ferment::boxed(dpp_voting_vote_polls_VotePoll::ContestedDocumentResourceVotePoll(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy<>(ffi: *mut dpp_voting_vote_polls_VotePoll) { ferment::unbox_any(ffi); } - } - - pub mod vote_choices { - use crate as dash_sdk_bindings; - - pub mod resource_vote_choice { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity(*mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier), Abstain, Lock } - - impl ferment::FFIConversionFrom for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { - unsafe fn ffi_from_const(ffi: *const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp::voting::vote_choices::resource_vote_choice::ResourceVoteChoice { - let ffi_ref = &*ffi; - match ffi_ref { - dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::TowardsIdentity(o_0) => dpp::voting::vote_choices::resource_vote_choice::ResourceVoteChoice::TowardsIdentity(>::ffi_from(*o_0)), - dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::Abstain => dpp::voting::vote_choices::resource_vote_choice::ResourceVoteChoice::Abstain, - dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::Lock => dpp::voting::vote_choices::resource_vote_choice::ResourceVoteChoice::Lock - } - } - } - - impl ferment::FFIConversionTo for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { - unsafe fn ffi_to_const(obj: dpp::voting::vote_choices::resource_vote_choice::ResourceVoteChoice) -> *const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { - ferment::boxed(match obj { - dpp::voting::vote_choices::resource_vote_choice::ResourceVoteChoice::TowardsIdentity(o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::TowardsIdentity(>::ffi_to(o_0)), - dpp::voting::vote_choices::resource_vote_choice::ResourceVoteChoice::Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::Abstain, - dpp::voting::vote_choices::resource_vote_choice::ResourceVoteChoice::Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::Lock, - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { - fn drop(&mut self) { - unsafe { - match self { - dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::TowardsIdentity(o_0) => { ferment::unbox_any(*o_0); } - dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::Abstain => {} - dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::Lock => {} - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor(o_o_0: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment::boxed(dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::TowardsIdentity(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor() -> *mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment::boxed(dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::Abstain {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor() -> *mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment::boxed(dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::Lock {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy<>(ffi: *mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment::unbox_any(ffi); } - } - } - - pub mod contender_structs { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod contender { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { - pub identity_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub serialized_document: *mut crate::fermented::generics::Vec_u8, - pub vote_tally: *mut u32, - } - - impl ferment::FFIConversionFrom for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { - unsafe fn ffi_from_const(ffi: *const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp::voting::contender_structs::contender::v0::ContenderWithSerializedDocumentV0 { - let ffi_ref = &*ffi; - dpp::voting::contender_structs::contender::v0::ContenderWithSerializedDocumentV0 { identity_id: >::ffi_from(ffi_ref.identity_id), serialized_document: >>::ffi_from_opt(ffi_ref.serialized_document), vote_tally: ferment::from_opt_primitive(ffi_ref.vote_tally) } - } - } - - impl ferment::FFIConversionTo for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const(obj: dpp::voting::contender_structs::contender::v0::ContenderWithSerializedDocumentV0) -> *const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment::boxed(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id: >::ffi_to(obj.identity_id), serialized_document: >>::ffi_to_opt(obj.serialized_document), vote_tally: ferment::to_opt_primitive(obj.vote_tally) }) } } - - impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.identity_id); - ferment::unbox_any_opt(ffi_ref.serialized_document); - ferment::destroy_opt_primitive(ffi_ref.vote_tally); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor<>(identity_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, serialized_document: *mut crate::fermented::generics::Vec_u8, vote_tally: *mut u32) -> *mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment::boxed(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id, serialized_document, vote_tally }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy<>(ffi: *mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id<>(obj: *const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).identity_id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document<>(obj: *const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> *mut crate::fermented::generics::Vec_u8 { (*obj).serialized_document } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally<>(obj: *const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> *mut u32 { (*obj).vote_tally } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id<>(obj: *const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).identity_id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document<>(obj: *const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> *mut crate::fermented::generics::Vec_u8 { (*obj).serialized_document } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally<>(obj: *const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> *mut u32 { (*obj).vote_tally } - } - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0(*mut crate::fermented::types::dpp::voting::contender_structs::contender::v0::dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } - - impl ferment::FFIConversionFrom for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { - unsafe fn ffi_from_const(ffi: *const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp::voting::contender_structs::contender::ContenderWithSerializedDocument { - let ffi_ref = &*ffi; - match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument::V0(o_0) => dpp::voting::contender_structs::contender::ContenderWithSerializedDocument::V0(>::ffi_from(*o_0)) } - } - } - - impl ferment::FFIConversionTo for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { - unsafe fn ffi_to_const(obj: dpp::voting::contender_structs::contender::ContenderWithSerializedDocument) -> *const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { - ferment::boxed(match obj { - dpp::voting::contender_structs::contender::ContenderWithSerializedDocument::V0(o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument::V0(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { - fn drop(&mut self) { - unsafe { - match self { - dpp_voting_contender_structs_contender_ContenderWithSerializedDocument::V0(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor(o_o_0: *mut crate::fermented::types::dpp::voting::contender_structs::contender::v0::dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> *mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment::boxed(dpp_voting_contender_structs_contender_ContenderWithSerializedDocument::V0(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy<>(ffi: *mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment::unbox_any(ffi); } - } - } - } - - pub mod prelude { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`BlockHeight`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_prelude_BlockHeight(u64); - - impl ferment::FFIConversionFrom for dpp_prelude_BlockHeight { - unsafe fn ffi_from_const(ffi: *const dpp_prelude_BlockHeight) -> dpp::prelude::BlockHeight { - let ffi_ref = &*ffi; - ffi_ref.0 - } - } - - impl ferment::FFIConversionTo for dpp_prelude_BlockHeight { unsafe fn ffi_to_const(obj: dpp::prelude::BlockHeight) -> *const dpp_prelude_BlockHeight { ferment::boxed(dpp_prelude_BlockHeight(obj)) } } - - impl Drop for dpp_prelude_BlockHeight { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor<>(o_0: u64) -> *mut dpp_prelude_BlockHeight { ferment::boxed(dpp_prelude_BlockHeight(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy<>(ffi: *mut dpp_prelude_BlockHeight) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0<>(obj: *const dpp_prelude_BlockHeight) -> u64 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0<>(obj: *const dpp_prelude_BlockHeight) -> u64 { (*obj).0 } - - #[doc = "FFI-representation of the [`TimestampMillis`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_prelude_TimestampMillis(u64); - - impl ferment::FFIConversionFrom for dpp_prelude_TimestampMillis { - unsafe fn ffi_from_const(ffi: *const dpp_prelude_TimestampMillis) -> dpp::prelude::TimestampMillis { - let ffi_ref = &*ffi; - ffi_ref.0 - } - } - - impl ferment::FFIConversionTo for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const(obj: dpp::prelude::TimestampMillis) -> *const dpp_prelude_TimestampMillis { ferment::boxed(dpp_prelude_TimestampMillis(obj)) } } - - impl Drop for dpp_prelude_TimestampMillis { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor<>(o_0: u64) -> *mut dpp_prelude_TimestampMillis { ferment::boxed(dpp_prelude_TimestampMillis(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy<>(ffi: *mut dpp_prelude_TimestampMillis) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0<>(obj: *const dpp_prelude_TimestampMillis) -> u64 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0<>(obj: *const dpp_prelude_TimestampMillis) -> u64 { (*obj).0 } - - #[doc = "FFI-representation of the [`CoreBlockHeight`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_prelude_CoreBlockHeight(u32); - - impl ferment::FFIConversionFrom for dpp_prelude_CoreBlockHeight { - unsafe fn ffi_from_const(ffi: *const dpp_prelude_CoreBlockHeight) -> dpp::prelude::CoreBlockHeight { - let ffi_ref = &*ffi; - ffi_ref.0 - } - } - - impl ferment::FFIConversionTo for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const(obj: dpp::prelude::CoreBlockHeight) -> *const dpp_prelude_CoreBlockHeight { ferment::boxed(dpp_prelude_CoreBlockHeight(obj)) } } - - impl Drop for dpp_prelude_CoreBlockHeight { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor<>(o_0: u32) -> *mut dpp_prelude_CoreBlockHeight { ferment::boxed(dpp_prelude_CoreBlockHeight(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy<>(ffi: *mut dpp_prelude_CoreBlockHeight) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0<>(obj: *const dpp_prelude_CoreBlockHeight) -> u32 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0<>(obj: *const dpp_prelude_CoreBlockHeight) -> u32 { (*obj).0 } - - #[doc = "FFI-representation of the [`Revision`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_prelude_Revision(u64); - - impl ferment::FFIConversionFrom for dpp_prelude_Revision { - unsafe fn ffi_from_const(ffi: *const dpp_prelude_Revision) -> dpp::prelude::Revision { - let ffi_ref = &*ffi; - ffi_ref.0 - } - } - - impl ferment::FFIConversionTo for dpp_prelude_Revision { unsafe fn ffi_to_const(obj: dpp::prelude::Revision) -> *const dpp_prelude_Revision { ferment::boxed(dpp_prelude_Revision(obj)) } } - - impl Drop for dpp_prelude_Revision { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_Revision_ctor<>(o_0: u64) -> *mut dpp_prelude_Revision { ferment::boxed(dpp_prelude_Revision(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_Revision_destroy<>(ffi: *mut dpp_prelude_Revision) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_Revision_get_0<>(obj: *const dpp_prelude_Revision) -> u64 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_Revision_set_0<>(obj: *const dpp_prelude_Revision) -> u64 { (*obj).0 } - } - - pub mod address_funds { - use crate as dash_sdk_bindings; - - #[cfg(feature = "shielded-client")] - pub mod orchard_address { - use crate as dash_sdk_bindings; - } - - pub mod platform_address { use crate as dash_sdk_bindings; } - - pub mod witness { use crate as dash_sdk_bindings; } - - pub mod fee_strategy { - use crate as dash_sdk_bindings; - - pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings; } - } - - pub mod witness_verification_operations { use crate as dash_sdk_bindings; } - - #[cfg(feature = "json-conversion")] - pub mod serde_helpers { - use crate as dash_sdk_bindings; - - pub mod address_output_singular { use crate as dash_sdk_bindings; } - - pub mod address_output_map_required_amount { use crate as dash_sdk_bindings; } - - pub mod address_input_map { use crate as dash_sdk_bindings; } - - pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings; } - } - } - - pub mod asset_lock { - use crate as dash_sdk_bindings; - - pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings; } - } - - pub mod serialization { - use crate as dash_sdk_bindings; - - #[cfg(feature = "serde-conversion")] - pub mod serde_bytes { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "json-conversion")] - pub mod json { - use crate as dash_sdk_bindings; - - pub mod safe_integer_map { use crate as dash_sdk_bindings; } - - pub mod safe_integer { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "serde-conversion")] - pub mod serde_bytes_var { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "state-transitions")] - pub mod state_transition { - use crate as dash_sdk_bindings; - - pub mod abstract_state_transition { use crate as dash_sdk_bindings; } - - pub mod traits { use crate as dash_sdk_bindings; } - - pub mod state_transitions { - use crate as dash_sdk_bindings; - - pub mod identity { - use crate as dash_sdk_bindings; - - pub mod public_key_in_creation { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings; } - - #[cfg(feature = "state-transition-signing")] - pub mod from_public_key_signed_external { - use crate as dash_sdk_bindings; - } - - pub mod duplicated_keys_witness { use crate as dash_sdk_bindings; } - - #[cfg(feature = "state-transition-signing")] - pub mod from_public_key_signed_with_private_key { - use crate as dash_sdk_bindings; - } - - pub mod hash { use crate as dash_sdk_bindings; } - - pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings; } - } - } - - pub mod identity_credit_withdrawal_transition { - use crate as dash_sdk_bindings; - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v1 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod identity_create_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - } - - pub mod identity_credit_transfer_to_addresses_transition { - use crate as dash_sdk_bindings; - - pub mod fields { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod identity_credit_transfer_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod fields { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - } - - pub mod common_fields { use crate as dash_sdk_bindings; } - - pub mod identity_create_from_addresses_transition { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod identity_topup_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod masternode_vote_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod fields { use crate as dash_sdk_bindings; } - } - - pub mod identity_topup_from_addresses_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod identity_update_transition { - use crate as dash_sdk_bindings; - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod fields { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(feature = "json-conversion")] - pub mod json_conversion { - use crate as dash_sdk_bindings; - } - } - } - } - - pub mod document { - use crate as dash_sdk_bindings; - - pub mod batch_transition { - use crate as dash_sdk_bindings; - - pub mod resolvers { use crate as dash_sdk_bindings; } - - pub mod v1 { use crate as dash_sdk_bindings; } - - pub mod fields { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod batched_transition { - use crate as dash_sdk_bindings; - - pub mod token_mint_transition { - use crate as dash_sdk_bindings; - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod v0_methods { use crate as dash_sdk_bindings; } - } - } - - pub mod document_base_transition { - use crate as dash_sdk_bindings; - - pub mod v1 { use crate as dash_sdk_bindings; } - - pub mod fields { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_purchase_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_create_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod resolvers { use crate as dash_sdk_bindings; } - - pub mod token_destroy_frozen_funds_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod token_transition_action_type { use crate as dash_sdk_bindings; } - - pub mod token_transition { use crate as dash_sdk_bindings; } - - pub mod document_delete_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_config_update_transition { - use crate as dash_sdk_bindings; - - pub mod v0_methods { use crate as dash_sdk_bindings; } - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_replace_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_freeze_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod token_transfer_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod document_transfer_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_emergency_action_transition { - use crate as dash_sdk_bindings; - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_direct_purchase_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod token_claim_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod document_update_price_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_burn_transition { - use crate as dash_sdk_bindings; - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_transition { use crate as dash_sdk_bindings; } - - pub mod token_set_price_for_direct_purchase_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod v0_methods { use crate as dash_sdk_bindings; } - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod document_transition_action_type { use crate as dash_sdk_bindings; } - - pub mod token_unfreeze_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod token_base_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod fields { use crate as dash_sdk_bindings; } - } - } - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "validation")] - pub mod validation { - use crate as dash_sdk_bindings; - - pub mod find_duplicates_by_id { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod validate_basic_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - } - } - - pub mod shielded { - use crate as dash_sdk_bindings; - - pub mod shielded_transfer_transition { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - - pub mod methods { use crate as dash_sdk_bindings; } - } - - pub mod shield_transition { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - - pub mod methods { use crate as dash_sdk_bindings; } - } - - pub mod shield_from_asset_lock_transition { - use crate as dash_sdk_bindings; - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod identity_create_from_shielded_pool_transition { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - } - - pub mod unshield_transition { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - } - - pub mod shielded_withdrawal_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - } - - pub mod common_validation { use crate as dash_sdk_bindings; } - } - - pub mod contract { - use crate as dash_sdk_bindings; - - pub mod data_contract_create_transition { - use crate as dash_sdk_bindings; - - #[cfg(feature = "json-conversion")] - pub mod json_conversion { - use crate as dash_sdk_bindings; - } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod common_fields { use crate as dash_sdk_bindings; } - - pub mod data_contract_update_transition { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - } - } - - pub mod common_fields { use crate as dash_sdk_bindings; } - - pub mod address_funds { - use crate as dash_sdk_bindings; - - pub mod address_credit_withdrawal_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - } - - pub mod address_funding_from_asset_lock_transition { - use crate as dash_sdk_bindings; - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod address_funds_transfer_transition { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - - pub mod methods { use crate as dash_sdk_bindings; } - } - } - } - - pub mod state_transition_types { use crate as dash_sdk_bindings; } - - pub mod errors { use crate as dash_sdk_bindings; } - - pub mod serialization { use crate as dash_sdk_bindings; } - } - - pub mod shielded { - use crate as dash_sdk_bindings; - - pub mod sighash { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod memo { use crate as dash_sdk_bindings; } - - #[cfg(feature = "shielded-client")] - pub mod builder { - use crate as dash_sdk_bindings; - - pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings; } - - pub mod shield_from_asset_lock { use crate as dash_sdk_bindings; } - - pub mod shielded_transfer { use crate as dash_sdk_bindings; } - - pub mod shield { use crate as dash_sdk_bindings; } - - pub mod unshield { use crate as dash_sdk_bindings; } - - pub mod shielded_withdrawal { use crate as dash_sdk_bindings; } - } - - pub mod compute_minimum_shielded_fee { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod document { - use crate as dash_sdk_bindings; - - pub mod serialization_traits { - use crate as dash_sdk_bindings; - - #[cfg(feature = "json-conversion")] - pub mod json_conversion { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "value-conversion")] - pub mod platform_value_conversion { - use crate as dash_sdk_bindings; - } - - pub mod platform_serialization_conversion { - use crate as dash_sdk_bindings; - - pub mod serialize { use crate as dash_sdk_bindings; } - - pub mod deserialize { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "document-cbor-conversion")] - pub mod cbor_conversion { - use crate as dash_sdk_bindings; - } - } - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(feature = "document-cbor-conversion")] - pub mod cbor_conversion { - use crate as dash_sdk_bindings; - } - - #[doc = "FFI-representation of the [`DocumentV0`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_document_v0_DocumentV0 { - pub id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub owner_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub properties: *mut crate::fermented::generics::std_collections_Map_keys_String_values_platform_value_Value, - pub revision: *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision, - pub created_at: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, - pub updated_at: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, - pub transferred_at: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, - pub created_at_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, - pub updated_at_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, - pub transferred_at_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, - pub created_at_core_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, - pub updated_at_core_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, - pub transferred_at_core_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, - pub creator_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - } - - impl ferment::FFIConversionFrom for dpp_document_v0_DocumentV0 { - unsafe fn ffi_from_const(ffi: *const dpp_document_v0_DocumentV0) -> dpp::document::v0::DocumentV0 { - let ffi_ref = &*ffi; - dpp::document::v0::DocumentV0 { - id: >::ffi_from(ffi_ref.id), - owner_id: >::ffi_from(ffi_ref.owner_id), - properties: >>::ffi_from(ffi_ref.properties), - revision: >::ffi_from_opt(ffi_ref.revision), - created_at: >::ffi_from_opt(ffi_ref.created_at), - updated_at: >::ffi_from_opt(ffi_ref.updated_at), - transferred_at: >::ffi_from_opt(ffi_ref.transferred_at), - created_at_block_height: >::ffi_from_opt(ffi_ref.created_at_block_height), - updated_at_block_height: >::ffi_from_opt(ffi_ref.updated_at_block_height), - transferred_at_block_height: >::ffi_from_opt(ffi_ref.transferred_at_block_height), - created_at_core_block_height: >::ffi_from_opt(ffi_ref.created_at_core_block_height), - updated_at_core_block_height: >::ffi_from_opt(ffi_ref.updated_at_core_block_height), - transferred_at_core_block_height: >::ffi_from_opt(ffi_ref.transferred_at_core_block_height), - creator_id: >::ffi_from_opt(ffi_ref.creator_id), - } - } - } - - impl ferment::FFIConversionTo for dpp_document_v0_DocumentV0 { - unsafe fn ffi_to_const(obj: dpp::document::v0::DocumentV0) -> *const dpp_document_v0_DocumentV0 { - ferment::boxed(dpp_document_v0_DocumentV0 { - id: >::ffi_to(obj.id), - owner_id: >::ffi_to(obj.owner_id), - properties: >>::ffi_to(obj.properties), - revision: >::ffi_to_opt(obj.revision), - created_at: >::ffi_to_opt(obj.created_at), - updated_at: >::ffi_to_opt(obj.updated_at), - transferred_at: >::ffi_to_opt(obj.transferred_at), - created_at_block_height: >::ffi_to_opt(obj.created_at_block_height), - updated_at_block_height: >::ffi_to_opt(obj.updated_at_block_height), - transferred_at_block_height: >::ffi_to_opt(obj.transferred_at_block_height), - created_at_core_block_height: >::ffi_to_opt(obj.created_at_core_block_height), - updated_at_core_block_height: >::ffi_to_opt(obj.updated_at_core_block_height), - transferred_at_core_block_height: >::ffi_to_opt(obj.transferred_at_core_block_height), - creator_id: >::ffi_to_opt(obj.creator_id), - }) - } - } - - impl Drop for dpp_document_v0_DocumentV0 { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.id); - ferment::unbox_any(ffi_ref.owner_id); - ferment::unbox_any(ffi_ref.properties); - ferment::unbox_any_opt(ffi_ref.revision); - ferment::unbox_any_opt(ffi_ref.created_at); - ferment::unbox_any_opt(ffi_ref.updated_at); - ferment::unbox_any_opt(ffi_ref.transferred_at); - ferment::unbox_any_opt(ffi_ref.created_at_block_height); - ferment::unbox_any_opt(ffi_ref.updated_at_block_height); - ferment::unbox_any_opt(ffi_ref.transferred_at_block_height); - ferment::unbox_any_opt(ffi_ref.created_at_core_block_height); - ferment::unbox_any_opt(ffi_ref.updated_at_core_block_height); - ferment::unbox_any_opt(ffi_ref.transferred_at_core_block_height); - ferment::unbox_any_opt(ffi_ref.creator_id); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor<>(id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, owner_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, properties: *mut crate::fermented::generics::std_collections_Map_keys_String_values_platform_value_Value, revision: *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision, created_at: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, updated_at: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, transferred_at: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, created_at_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, updated_at_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, transferred_at_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, created_at_core_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, updated_at_core_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, transferred_at_core_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, creator_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut dpp_document_v0_DocumentV0 { ferment::boxed(dpp_document_v0_DocumentV0 { id, owner_id, properties, revision, created_at, updated_at, transferred_at, created_at_block_height, updated_at_block_height, transferred_at_block_height, created_at_core_block_height, updated_at_core_block_height, transferred_at_core_block_height, creator_id }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy<>(ffi: *mut dpp_document_v0_DocumentV0) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).owner_id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::generics::std_collections_Map_keys_String_values_platform_value_Value { (*obj).properties } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision { (*obj).revision } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { (*obj).created_at } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { (*obj).updated_at } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { (*obj).transferred_at } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { (*obj).created_at_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { (*obj).updated_at_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { (*obj).transferred_at_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { (*obj).created_at_core_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { (*obj).updated_at_core_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { (*obj).transferred_at_core_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).creator_id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).owner_id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::generics::std_collections_Map_keys_String_values_platform_value_Value { (*obj).properties } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision { (*obj).revision } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { (*obj).created_at } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { (*obj).updated_at } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { (*obj).transferred_at } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { (*obj).created_at_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { (*obj).updated_at_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { (*obj).transferred_at_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { (*obj).created_at_core_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { (*obj).updated_at_core_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { (*obj).transferred_at_core_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).creator_id } - - #[cfg(feature = "value-conversion")] - pub mod platform_value_conversion { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "json-conversion")] - pub mod json_conversion { - use crate as dash_sdk_bindings; - } - - pub mod serialize { use crate as dash_sdk_bindings; } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - - #[cfg(feature = "extended-document")] - pub mod extended_document { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod fields { use crate as dash_sdk_bindings; } - } - - pub mod document_methods { - use crate as dash_sdk_bindings; - - pub mod get_raw_for_contract { use crate as dash_sdk_bindings; } - - pub mod get_raw_for_document_type { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod hash { use crate as dash_sdk_bindings; } - - pub mod is_equal_ignoring_timestamps { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod fields { use crate as dash_sdk_bindings; } - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_document_Document { V0(*mut crate::fermented::types::dpp::document::v0::dpp_document_v0_DocumentV0) } - - impl ferment::FFIConversionFrom for dpp_document_Document { - unsafe fn ffi_from_const(ffi: *const dpp_document_Document) -> dpp::document::Document { - let ffi_ref = &*ffi; - match ffi_ref { dpp_document_Document::V0(o_0) => dpp::document::Document::V0(>::ffi_from(*o_0)) } - } - } - - impl ferment::FFIConversionTo for dpp_document_Document { - unsafe fn ffi_to_const(obj: dpp::document::Document) -> *const dpp_document_Document { - ferment::boxed(match obj { - dpp::document::Document::V0(o_0) => dpp_document_Document::V0(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_document_Document { - fn drop(&mut self) { - unsafe { - match self { - dpp_document_Document::V0(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_Document_V0_ctor(o_o_0: *mut crate::fermented::types::dpp::document::v0::dpp_document_v0_DocumentV0) -> *mut dpp_document_Document { ferment::boxed(dpp_document_Document::V0(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_Document_destroy<>(ffi: *mut dpp_document_Document) { ferment::unbox_any(ffi); } - - #[cfg(feature = "factories")] - pub mod specialized_document_factory { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - #[cfg(feature = "factories")] - pub mod document_factory { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - pub mod fee { - use crate as dash_sdk_bindings; - - pub mod epoch { - use crate as dash_sdk_bindings; - - #[cfg(feature = "fee-distribution")] - pub mod distribution { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - #[cfg(feature = "fee-distribution")] - pub mod fee_result { - use crate as dash_sdk_bindings; - - pub mod refunds { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - pub mod default_costs { use crate as dash_sdk_bindings; } - } - - pub mod core_subsidy { - use crate as dash_sdk_bindings; - - pub mod epoch_core_reward_credits_for_distribution { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "core-types")] - pub mod core_types { - use crate as dash_sdk_bindings; - - pub mod validator { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod validator_set { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod withdrawal { - use crate as dash_sdk_bindings; - - #[cfg(feature = "serde-conversion")] - pub mod pooling_serde { - use crate as dash_sdk_bindings; - } - - pub mod daily_withdrawal_limit { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(all(feature = "withdrawals-contract", feature = "system_contracts"))] - pub mod document_try_into_asset_unlock_base_transaction_info { - use crate as dash_sdk_bindings; - } - } - - pub mod identity { - use crate as dash_sdk_bindings; - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod create_basic_identity { use crate as dash_sdk_bindings; } - } - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`IdentityV0`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_identity_v0_IdentityV0 { - pub id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub public_keys: *mut crate::fermented::generics::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey, - pub balance: u64, - pub revision: *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision, - } - - impl ferment::FFIConversionFrom for dpp_identity_v0_IdentityV0 { - unsafe fn ffi_from_const(ffi: *const dpp_identity_v0_IdentityV0) -> dpp::identity::v0::IdentityV0 { - let ffi_ref = &*ffi; - dpp::identity::v0::IdentityV0 { id: >::ffi_from(ffi_ref.id), public_keys: >>::ffi_from(ffi_ref.public_keys), balance: ffi_ref.balance, revision: >::ffi_from(ffi_ref.revision) } - } - } - - impl ferment::FFIConversionTo for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const(obj: dpp::identity::v0::IdentityV0) -> *const dpp_identity_v0_IdentityV0 { ferment::boxed(dpp_identity_v0_IdentityV0 { id: >::ffi_to(obj.id), public_keys: >>::ffi_to(obj.public_keys), balance: obj.balance, revision: >::ffi_to(obj.revision) }) } } - - impl Drop for dpp_identity_v0_IdentityV0 { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.id); - ferment::unbox_any(ffi_ref.public_keys); - ; - ferment::unbox_any(ffi_ref.revision); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor<>(id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, public_keys: *mut crate::fermented::generics::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey, balance: u64, revision: *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision) -> *mut dpp_identity_v0_IdentityV0 { ferment::boxed(dpp_identity_v0_IdentityV0 { id, public_keys, balance, revision }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy<>(ffi: *mut dpp_identity_v0_IdentityV0) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id<>(obj: *const dpp_identity_v0_IdentityV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys<>(obj: *const dpp_identity_v0_IdentityV0) -> *mut crate::fermented::generics::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (*obj).public_keys } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance<>(obj: *const dpp_identity_v0_IdentityV0) -> u64 { (*obj).balance } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision<>(obj: *const dpp_identity_v0_IdentityV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision { (*obj).revision } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id<>(obj: *const dpp_identity_v0_IdentityV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys<>(obj: *const dpp_identity_v0_IdentityV0) -> *mut crate::fermented::generics::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (*obj).public_keys } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance<>(obj: *const dpp_identity_v0_IdentityV0) -> u64 { (*obj).balance } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision<>(obj: *const dpp_identity_v0_IdentityV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision { (*obj).revision } - - pub mod conversion { - use crate as dash_sdk_bindings; - - #[cfg(feature = "json-conversion")] - pub mod json { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "value-conversion")] - pub mod platform_value { - use crate as dash_sdk_bindings; - } - } - } - - pub mod core_script { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod state_transition { - use crate as dash_sdk_bindings; - - pub mod asset_lock_proof { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod instant { - use crate as dash_sdk_bindings; - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod validate_structure { use crate as dash_sdk_bindings; } - } - - pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings; } - } - - pub mod chain { - use crate as dash_sdk_bindings; - - pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings; } - } - - pub mod validate_asset_lock_transaction_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - - pub mod fields { use crate as dash_sdk_bindings; } - - pub mod conversion { - use crate as dash_sdk_bindings; - - #[cfg(feature = "value-conversion")] - pub mod platform_value { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "json-conversion")] - pub mod json { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "identity-cbor-conversion")] - pub mod cbor { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "factories")] - pub mod identity_factory { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "client")] - pub mod identity_facade { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod identity { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_identity_identity_Identity { V0(*mut crate::fermented::types::dpp::identity::v0::dpp_identity_v0_IdentityV0) } - - impl ferment::FFIConversionFrom for dpp_identity_identity_Identity { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_Identity) -> dpp::identity::identity::Identity { - let ffi_ref = &*ffi; - match ffi_ref { dpp_identity_identity_Identity::V0(o_0) => dpp::identity::identity::Identity::V0(>::ffi_from(*o_0)) } - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_Identity { - unsafe fn ffi_to_const(obj: dpp::identity::identity::Identity) -> *const dpp_identity_identity_Identity { - ferment::boxed(match obj { - dpp::identity::identity::Identity::V0(o_0) => dpp_identity_identity_Identity::V0(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_identity_identity_Identity { - fn drop(&mut self) { - unsafe { - match self { - dpp_identity_identity_Identity::V0(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor(o_o_0: *mut crate::fermented::types::dpp::identity::v0::dpp_identity_v0_IdentityV0) -> *mut dpp_identity_identity_Identity { ferment::boxed(dpp_identity_identity_Identity::V0(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy<>(ffi: *mut dpp_identity_identity_Identity) { ferment::unbox_any(ffi); } - } - - pub mod errors { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod identity_nonce { use crate as dash_sdk_bindings; } - - pub mod credits_converter { use crate as dash_sdk_bindings; } - - pub mod identity_public_key { - use crate as dash_sdk_bindings; - - pub mod key_type { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0, BLS12_381 = 1, ECDSA_HASH160 = 2, BIP13_SCRIPT_HASH = 3, EDDSA_25519_HASH160 = 4 } - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_key_type_KeyType { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_key_type_KeyType) -> dpp::identity::identity_public_key::key_type::KeyType { - let ffi_ref = &*ffi; - match ffi_ref { - dpp_identity_identity_public_key_key_type_KeyType::ECDSA_SECP256K1 => dpp::identity::identity_public_key::key_type::KeyType::ECDSA_SECP256K1, - dpp_identity_identity_public_key_key_type_KeyType::BLS12_381 => dpp::identity::identity_public_key::key_type::KeyType::BLS12_381, - dpp_identity_identity_public_key_key_type_KeyType::ECDSA_HASH160 => dpp::identity::identity_public_key::key_type::KeyType::ECDSA_HASH160, - dpp_identity_identity_public_key_key_type_KeyType::BIP13_SCRIPT_HASH => dpp::identity::identity_public_key::key_type::KeyType::BIP13_SCRIPT_HASH, - dpp_identity_identity_public_key_key_type_KeyType::EDDSA_25519_HASH160 => dpp::identity::identity_public_key::key_type::KeyType::EDDSA_25519_HASH160 - } - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_key_type_KeyType { - unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::key_type::KeyType) -> *const dpp_identity_identity_public_key_key_type_KeyType { - ferment::boxed(match obj { - dpp::identity::identity_public_key::key_type::KeyType::ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType::ECDSA_SECP256K1, - dpp::identity::identity_public_key::key_type::KeyType::BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType::BLS12_381, - dpp::identity::identity_public_key::key_type::KeyType::ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType::ECDSA_HASH160, - dpp::identity::identity_public_key::key_type::KeyType::BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType::BIP13_SCRIPT_HASH, - dpp::identity::identity_public_key::key_type::KeyType::EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType::EDDSA_25519_HASH160, - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_identity_identity_public_key_key_type_KeyType { - fn drop(&mut self) { - unsafe { - match self { - dpp_identity_identity_public_key_key_type_KeyType::ECDSA_SECP256K1 => {} - dpp_identity_identity_public_key_key_type_KeyType::BLS12_381 => {} - dpp_identity_identity_public_key_key_type_KeyType::ECDSA_HASH160 => {} - dpp_identity_identity_public_key_key_type_KeyType::BIP13_SCRIPT_HASH => {} - dpp_identity_identity_public_key_key_type_KeyType::EDDSA_25519_HASH160 => {} - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor() -> *mut dpp_identity_identity_public_key_key_type_KeyType { ferment::boxed(dpp_identity_identity_public_key_key_type_KeyType::ECDSA_SECP256K1 {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor() -> *mut dpp_identity_identity_public_key_key_type_KeyType { ferment::boxed(dpp_identity_identity_public_key_key_type_KeyType::BLS12_381 {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor() -> *mut dpp_identity_identity_public_key_key_type_KeyType { ferment::boxed(dpp_identity_identity_public_key_key_type_KeyType::ECDSA_HASH160 {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor() -> *mut dpp_identity_identity_public_key_key_type_KeyType { ferment::boxed(dpp_identity_identity_public_key_key_type_KeyType::BIP13_SCRIPT_HASH {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor() -> *mut dpp_identity_identity_public_key_key_type_KeyType { ferment::boxed(dpp_identity_identity_public_key_key_type_KeyType::EDDSA_25519_HASH160 {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy<>(ffi: *mut dpp_identity_identity_public_key_key_type_KeyType) { ferment::unbox_any(ffi); } - } - - #[doc = "FFI-representation of the [`KeyCount`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_identity_identity_public_key_KeyCount(*mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID); - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_KeyCount { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_KeyCount) -> dpp::identity::identity_public_key::KeyCount { - let ffi_ref = &*ffi; - >::ffi_from(ffi_ref.0) - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::KeyCount) -> *const dpp_identity_identity_public_key_KeyCount { ferment::boxed(dpp_identity_identity_public_key_KeyCount(>::ffi_to(obj))) } } - - impl Drop for dpp_identity_identity_public_key_KeyCount { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor<>(o_0: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID) -> *mut dpp_identity_identity_public_key_KeyCount { ferment::boxed(dpp_identity_identity_public_key_KeyCount(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy<>(ffi: *mut dpp_identity_identity_public_key_KeyCount) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0<>(obj: *const dpp_identity_identity_public_key_KeyCount) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0<>(obj: *const dpp_identity_identity_public_key_KeyCount) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID { (*obj).0 } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod conversion { - use crate as dash_sdk_bindings; - - #[cfg(feature = "json-conversion")] - pub mod json { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "value-conversion")] - pub mod platform_value { - use crate as dash_sdk_bindings; - } - } - - #[doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { - pub id: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID, - pub purpose: *mut crate::fermented::types::dpp::identity::identity_public_key::purpose::dpp_identity_identity_public_key_purpose_Purpose, - pub security_level: *mut crate::fermented::types::dpp::identity::identity_public_key::security_level::dpp_identity_identity_public_key_security_level_SecurityLevel, - pub contract_bounds: *mut crate::fermented::types::dpp::identity::identity_public_key::contract_bounds::dpp_identity_identity_public_key_contract_bounds_ContractBounds, - pub key_type: *mut crate::fermented::types::dpp::identity::identity_public_key::key_type::dpp_identity_identity_public_key_key_type_KeyType, - pub read_only: bool, - pub data: *mut crate::fermented::types::platform_value::types::binary_data::platform_value_types_binary_data_BinaryData, - pub disabled_at: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, - } - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp::identity::identity_public_key::v0::IdentityPublicKeyV0 { - let ffi_ref = &*ffi; - dpp::identity::identity_public_key::v0::IdentityPublicKeyV0 { - id: >::ffi_from(ffi_ref.id), - purpose: >::ffi_from(ffi_ref.purpose), - security_level: >::ffi_from(ffi_ref.security_level), - contract_bounds: >::ffi_from_opt(ffi_ref.contract_bounds), - key_type: >::ffi_from(ffi_ref.key_type), - read_only: ffi_ref.read_only, - data: >::ffi_from(ffi_ref.data), - disabled_at: >::ffi_from_opt(ffi_ref.disabled_at), - } - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { - unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::v0::IdentityPublicKeyV0) -> *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { - ferment::boxed(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { - id: >::ffi_to(obj.id), - purpose: >::ffi_to(obj.purpose), - security_level: >::ffi_to(obj.security_level), - contract_bounds: >::ffi_to_opt(obj.contract_bounds), - key_type: >::ffi_to(obj.key_type), - read_only: obj.read_only, - data: >::ffi_to(obj.data), - disabled_at: >::ffi_to_opt(obj.disabled_at), - }) - } - } - - impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.id); - ferment::unbox_any(ffi_ref.purpose); - ferment::unbox_any(ffi_ref.security_level); - ferment::unbox_any_opt(ffi_ref.contract_bounds); - ferment::unbox_any(ffi_ref.key_type); - ; - ferment::unbox_any(ffi_ref.data); - ferment::unbox_any_opt(ffi_ref.disabled_at); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor<>(id: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID, purpose: *mut crate::fermented::types::dpp::identity::identity_public_key::purpose::dpp_identity_identity_public_key_purpose_Purpose, security_level: *mut crate::fermented::types::dpp::identity::identity_public_key::security_level::dpp_identity_identity_public_key_security_level_SecurityLevel, contract_bounds: *mut crate::fermented::types::dpp::identity::identity_public_key::contract_bounds::dpp_identity_identity_public_key_contract_bounds_ContractBounds, key_type: *mut crate::fermented::types::dpp::identity::identity_public_key::key_type::dpp_identity_identity_public_key_key_type_KeyType, read_only: bool, data: *mut crate::fermented::types::platform_value::types::binary_data::platform_value_types_binary_data_BinaryData, disabled_at: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis) -> *mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment::boxed(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id, purpose, security_level, contract_bounds, key_type, read_only, data, disabled_at }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy<>(ffi: *mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID { (*obj).id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::purpose::dpp_identity_identity_public_key_purpose_Purpose { (*obj).purpose } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::security_level::dpp_identity_identity_public_key_security_level_SecurityLevel { (*obj).security_level } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::contract_bounds::dpp_identity_identity_public_key_contract_bounds_ContractBounds { (*obj).contract_bounds } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::key_type::dpp_identity_identity_public_key_key_type_KeyType { (*obj).key_type } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (*obj).read_only } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::platform_value::types::binary_data::platform_value_types_binary_data_BinaryData { (*obj).data } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { (*obj).disabled_at } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID { (*obj).id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::purpose::dpp_identity_identity_public_key_purpose_Purpose { (*obj).purpose } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::security_level::dpp_identity_identity_public_key_security_level_SecurityLevel { (*obj).security_level } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::contract_bounds::dpp_identity_identity_public_key_contract_bounds_ContractBounds { (*obj).contract_bounds } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::key_type::dpp_identity_identity_public_key_key_type_KeyType { (*obj).key_type } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (*obj).read_only } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::platform_value::types::binary_data::platform_value_types_binary_data_BinaryData { (*obj).data } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { (*obj).disabled_at } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod security_level { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0, CRITICAL = 1, HIGH = 2, MEDIUM = 3 } - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_security_level_SecurityLevel { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp::identity::identity_public_key::security_level::SecurityLevel { - let ffi_ref = &*ffi; - match ffi_ref { - dpp_identity_identity_public_key_security_level_SecurityLevel::MASTER => dpp::identity::identity_public_key::security_level::SecurityLevel::MASTER, - dpp_identity_identity_public_key_security_level_SecurityLevel::CRITICAL => dpp::identity::identity_public_key::security_level::SecurityLevel::CRITICAL, - dpp_identity_identity_public_key_security_level_SecurityLevel::HIGH => dpp::identity::identity_public_key::security_level::SecurityLevel::HIGH, - dpp_identity_identity_public_key_security_level_SecurityLevel::MEDIUM => dpp::identity::identity_public_key::security_level::SecurityLevel::MEDIUM - } - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_security_level_SecurityLevel { - unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::security_level::SecurityLevel) -> *const dpp_identity_identity_public_key_security_level_SecurityLevel { - ferment::boxed(match obj { - dpp::identity::identity_public_key::security_level::SecurityLevel::MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel::MASTER, - dpp::identity::identity_public_key::security_level::SecurityLevel::CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel::CRITICAL, - dpp::identity::identity_public_key::security_level::SecurityLevel::HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel::HIGH, - dpp::identity::identity_public_key::security_level::SecurityLevel::MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel::MEDIUM, - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { - fn drop(&mut self) { - unsafe { - match self { - dpp_identity_identity_public_key_security_level_SecurityLevel::MASTER => {} - dpp_identity_identity_public_key_security_level_SecurityLevel::CRITICAL => {} - dpp_identity_identity_public_key_security_level_SecurityLevel::HIGH => {} - dpp_identity_identity_public_key_security_level_SecurityLevel::MEDIUM => {} - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor() -> *mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment::boxed(dpp_identity_identity_public_key_security_level_SecurityLevel::MASTER {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor() -> *mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment::boxed(dpp_identity_identity_public_key_security_level_SecurityLevel::CRITICAL {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor() -> *mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment::boxed(dpp_identity_identity_public_key_security_level_SecurityLevel::HIGH {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor() -> *mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment::boxed(dpp_identity_identity_public_key_security_level_SecurityLevel::MEDIUM {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy<>(ffi: *mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment::unbox_any(ffi); } - } - - pub mod contract_bounds { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier }, SingleContractDocumentType { id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, document_type_name: *mut std::os::raw::c_char } } - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_contract_bounds_ContractBounds { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp::identity::identity_public_key::contract_bounds::ContractBounds { - let ffi_ref = &*ffi; - match ffi_ref { - dpp_identity_identity_public_key_contract_bounds_ContractBounds::SingleContract { id } => dpp::identity::identity_public_key::contract_bounds::ContractBounds::SingleContract { id: >::ffi_from(*id) }, - dpp_identity_identity_public_key_contract_bounds_ContractBounds::SingleContractDocumentType { id, document_type_name } => dpp::identity::identity_public_key::contract_bounds::ContractBounds::SingleContractDocumentType { id: >::ffi_from(*id), document_type_name: >::ffi_from(*document_type_name) } - } - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_contract_bounds_ContractBounds { - unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::contract_bounds::ContractBounds) -> *const dpp_identity_identity_public_key_contract_bounds_ContractBounds { - ferment::boxed(match obj { - dpp::identity::identity_public_key::contract_bounds::ContractBounds::SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds::SingleContract { id: >::ffi_to(id) }, - dpp::identity::identity_public_key::contract_bounds::ContractBounds::SingleContractDocumentType { id, document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds::SingleContractDocumentType { id: >::ffi_to(id), document_type_name: >::ffi_to(document_type_name) }, - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { - fn drop(&mut self) { - unsafe { - match self { - dpp_identity_identity_public_key_contract_bounds_ContractBounds::SingleContract { id } => { ferment::unbox_any(*id); } - dpp_identity_identity_public_key_contract_bounds_ContractBounds::SingleContractDocumentType { id, document_type_name } => { - ferment::unbox_any(*id); - ; - ferment::unbox_string(*document_type_name); - } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor(id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment::boxed(dpp_identity_identity_public_key_contract_bounds_ContractBounds::SingleContract { id }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor(id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, document_type_name: *mut std::os::raw::c_char) -> *mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment::boxed(dpp_identity_identity_public_key_contract_bounds_ContractBounds::SingleContractDocumentType { id, document_type_name }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy<>(ffi: *mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment::unbox_any(ffi); } - } - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod hash { use crate as dash_sdk_bindings; } - } - - pub mod conversion { - use crate as dash_sdk_bindings; - - #[cfg(feature = "json-conversion")] - pub mod json { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "value-conversion")] - pub mod platform_value { - use crate as dash_sdk_bindings; - } - } - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0(*mut crate::fermented::types::dpp::identity::identity_public_key::v0::dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) } - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_IdentityPublicKey { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp::identity::identity_public_key::IdentityPublicKey { - let ffi_ref = &*ffi; - match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey::V0(o_0) => dpp::identity::identity_public_key::IdentityPublicKey::V0(>::ffi_from(*o_0)) } - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_IdentityPublicKey { - unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::IdentityPublicKey) -> *const dpp_identity_identity_public_key_IdentityPublicKey { - ferment::boxed(match obj { - dpp::identity::identity_public_key::IdentityPublicKey::V0(o_0) => dpp_identity_identity_public_key_IdentityPublicKey::V0(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { - fn drop(&mut self) { - unsafe { - match self { - dpp_identity_identity_public_key_IdentityPublicKey::V0(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor(o_o_0: *mut crate::fermented::types::dpp::identity::identity_public_key::v0::dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut dpp_identity_identity_public_key_IdentityPublicKey { ferment::boxed(dpp_identity_identity_public_key_IdentityPublicKey::V0(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy<>(ffi: *mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment::unbox_any(ffi); } - - #[doc = "FFI-representation of the [`KeyID`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_identity_identity_public_key_KeyID(u32); - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_KeyID { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_KeyID) -> dpp::identity::identity_public_key::KeyID { - let ffi_ref = &*ffi; - ffi_ref.0 - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::KeyID) -> *const dpp_identity_identity_public_key_KeyID { ferment::boxed(dpp_identity_identity_public_key_KeyID(obj)) } } - - impl Drop for dpp_identity_identity_public_key_KeyID { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor<>(o_0: u32) -> *mut dpp_identity_identity_public_key_KeyID { ferment::boxed(dpp_identity_identity_public_key_KeyID(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy<>(ffi: *mut dpp_identity_identity_public_key_KeyID) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0<>(obj: *const dpp_identity_identity_public_key_KeyID) -> u32 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0<>(obj: *const dpp_identity_identity_public_key_KeyID) -> u32 { (*obj).0 } - - pub mod purpose { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0, ENCRYPTION = 1, DECRYPTION = 2, TRANSFER = 3, SYSTEM = 4, VOTING = 5, OWNER = 6 } - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_purpose_Purpose { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_purpose_Purpose) -> dpp::identity::identity_public_key::purpose::Purpose { - let ffi_ref = &*ffi; - match ffi_ref { - dpp_identity_identity_public_key_purpose_Purpose::AUTHENTICATION => dpp::identity::identity_public_key::purpose::Purpose::AUTHENTICATION, - dpp_identity_identity_public_key_purpose_Purpose::ENCRYPTION => dpp::identity::identity_public_key::purpose::Purpose::ENCRYPTION, - dpp_identity_identity_public_key_purpose_Purpose::DECRYPTION => dpp::identity::identity_public_key::purpose::Purpose::DECRYPTION, - dpp_identity_identity_public_key_purpose_Purpose::TRANSFER => dpp::identity::identity_public_key::purpose::Purpose::TRANSFER, - dpp_identity_identity_public_key_purpose_Purpose::SYSTEM => dpp::identity::identity_public_key::purpose::Purpose::SYSTEM, - dpp_identity_identity_public_key_purpose_Purpose::VOTING => dpp::identity::identity_public_key::purpose::Purpose::VOTING, - dpp_identity_identity_public_key_purpose_Purpose::OWNER => dpp::identity::identity_public_key::purpose::Purpose::OWNER - } - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_purpose_Purpose { - unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::purpose::Purpose) -> *const dpp_identity_identity_public_key_purpose_Purpose { - ferment::boxed(match obj { - dpp::identity::identity_public_key::purpose::Purpose::AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose::AUTHENTICATION, - dpp::identity::identity_public_key::purpose::Purpose::ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose::ENCRYPTION, - dpp::identity::identity_public_key::purpose::Purpose::DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose::DECRYPTION, - dpp::identity::identity_public_key::purpose::Purpose::TRANSFER => dpp_identity_identity_public_key_purpose_Purpose::TRANSFER, - dpp::identity::identity_public_key::purpose::Purpose::SYSTEM => dpp_identity_identity_public_key_purpose_Purpose::SYSTEM, - dpp::identity::identity_public_key::purpose::Purpose::VOTING => dpp_identity_identity_public_key_purpose_Purpose::VOTING, - dpp::identity::identity_public_key::purpose::Purpose::OWNER => dpp_identity_identity_public_key_purpose_Purpose::OWNER, - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_identity_identity_public_key_purpose_Purpose { - fn drop(&mut self) { - unsafe { - match self { - dpp_identity_identity_public_key_purpose_Purpose::AUTHENTICATION => {} - dpp_identity_identity_public_key_purpose_Purpose::ENCRYPTION => {} - dpp_identity_identity_public_key_purpose_Purpose::DECRYPTION => {} - dpp_identity_identity_public_key_purpose_Purpose::TRANSFER => {} - dpp_identity_identity_public_key_purpose_Purpose::SYSTEM => {} - dpp_identity_identity_public_key_purpose_Purpose::VOTING => {} - dpp_identity_identity_public_key_purpose_Purpose::OWNER => {} - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor() -> *mut dpp_identity_identity_public_key_purpose_Purpose { ferment::boxed(dpp_identity_identity_public_key_purpose_Purpose::AUTHENTICATION {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor() -> *mut dpp_identity_identity_public_key_purpose_Purpose { ferment::boxed(dpp_identity_identity_public_key_purpose_Purpose::ENCRYPTION {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor() -> *mut dpp_identity_identity_public_key_purpose_Purpose { ferment::boxed(dpp_identity_identity_public_key_purpose_Purpose::DECRYPTION {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor() -> *mut dpp_identity_identity_public_key_purpose_Purpose { ferment::boxed(dpp_identity_identity_public_key_purpose_Purpose::TRANSFER {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor() -> *mut dpp_identity_identity_public_key_purpose_Purpose { ferment::boxed(dpp_identity_identity_public_key_purpose_Purpose::SYSTEM {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor() -> *mut dpp_identity_identity_public_key_purpose_Purpose { ferment::boxed(dpp_identity_identity_public_key_purpose_Purpose::VOTING {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor() -> *mut dpp_identity_identity_public_key_purpose_Purpose { ferment::boxed(dpp_identity_identity_public_key_purpose_Purpose::OWNER {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy<>(ffi: *mut dpp_identity_identity_public_key_purpose_Purpose) { ferment::unbox_any(ffi); } - } - - #[doc = "FFI-representation of the [`TimestampMillis`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_identity_identity_public_key_TimestampMillis(u64); - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_TimestampMillis { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_TimestampMillis) -> dpp::identity::identity_public_key::TimestampMillis { - let ffi_ref = &*ffi; - ffi_ref.0 - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::TimestampMillis) -> *const dpp_identity_identity_public_key_TimestampMillis { ferment::boxed(dpp_identity_identity_public_key_TimestampMillis(obj)) } } - - impl Drop for dpp_identity_identity_public_key_TimestampMillis { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor<>(o_0: u64) -> *mut dpp_identity_identity_public_key_TimestampMillis { ferment::boxed(dpp_identity_identity_public_key_TimestampMillis(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy<>(ffi: *mut dpp_identity_identity_public_key_TimestampMillis) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0<>(obj: *const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0<>(obj: *const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (*obj).0 } - } - } - - pub mod data_contract { - use crate as dash_sdk_bindings; - - #[cfg(any(feature = "state-transitions", feature = "factories"))] - pub mod created_data_contract { - use crate as dash_sdk_bindings; - - pub mod fields { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "factories")] - pub mod factory { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod change_control_rules { - use crate as dash_sdk_bindings; - - pub mod authorized_action_takers { use crate as dash_sdk_bindings; } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod document_type { - use crate as dash_sdk_bindings; - - pub mod token_costs { use crate as dash_sdk_bindings; } - - pub mod v2 { use crate as dash_sdk_bindings; } - - pub mod class_methods { - use crate as dash_sdk_bindings; - - pub mod should_use_creator_id { use crate as dash_sdk_bindings; } - - pub mod create_document_types_from_document_schemas { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod try_from_schema { - use crate as dash_sdk_bindings; - - pub mod v1 { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod v2 { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - } - - pub mod methods { - use crate as dash_sdk_bindings; - - #[cfg(feature = "validation")] - pub mod validate_update { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - } - - pub mod index { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod v1 { use crate as dash_sdk_bindings; } - - pub mod index_level { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod schema { - use crate as dash_sdk_bindings; - - pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings; } - - pub mod enrich_with_base_schema { use crate as dash_sdk_bindings; } - - #[cfg(feature = "validation")] - pub mod validate_max_depth { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "validation")] - pub mod validate_schema_compatibility { - use crate as dash_sdk_bindings; - } - - pub mod allowed_top_level_properties { use crate as dash_sdk_bindings; } - - #[cfg(feature = "validation")] - pub mod recursive_schema_validator { - use crate as dash_sdk_bindings; - - pub mod traversal_validator { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "random-documents")] - pub mod random_document { - use crate as dash_sdk_bindings; - } - - pub mod property { - use crate as dash_sdk_bindings; - - pub mod array { use crate as dash_sdk_bindings; } - } - } - - pub mod group { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod config { - use crate as dash_sdk_bindings; - - pub mod fields { use crate as dash_sdk_bindings; } - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod validate_update { - use crate as dash_sdk_bindings; - - pub mod v1 { use crate as dash_sdk_bindings; } - } - } - } - - pub mod storage_requirements { use crate as dash_sdk_bindings; } - - pub mod v1 { - use crate as dash_sdk_bindings; - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod schema { use crate as dash_sdk_bindings; } - } - - pub mod conversion { use crate as dash_sdk_bindings; } - - pub mod serialization { use crate as dash_sdk_bindings; } - } - - pub mod serialized_version { use crate as dash_sdk_bindings; } - - pub mod associated_token { - use crate as dash_sdk_bindings; - - pub mod token_keeps_history_rules { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod token_marketplace_rules { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_pre_programmed_distribution { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod token_configuration_convention { - use crate as dash_sdk_bindings; - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod validate_localizations { use crate as dash_sdk_bindings; } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod token_configuration_item { use crate as dash_sdk_bindings; } - - pub mod token_distribution_rules { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod token_configuration { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod can_apply_token_configuration_item { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod apply_token_configuration_item { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod validate_token_configuration_groups_exist { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod validate_token_configuration_update { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod authorized_action_takers_for_configuration_item { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - - pub mod token_configuration_localization { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod token_perpetual_distribution { - use crate as dash_sdk_bindings; - - pub mod reward_distribution_type { - use crate as dash_sdk_bindings; - - pub mod validation { use crate as dash_sdk_bindings; } - } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod distribution_function { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod validation { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod evaluate_interval { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod encode { use crate as dash_sdk_bindings; } - - pub mod evaluate { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - pub mod distribution_recipient { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod reward_distribution_moment { use crate as dash_sdk_bindings; } - } - } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod serialization { use crate as dash_sdk_bindings; } - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod schema { use crate as dash_sdk_bindings; } - } - - pub mod conversion { use crate as dash_sdk_bindings; } - - pub mod data_contract { use crate as dash_sdk_bindings; } - } - - pub mod errors { use crate as dash_sdk_bindings; } - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings; } - - pub mod registration_cost { use crate as dash_sdk_bindings; } - - #[cfg(feature = "validation")] - pub mod validate_document { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "validation")] - pub mod validate_update { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - pub mod schema { use crate as dash_sdk_bindings; } - - #[cfg(feature = "validation")] - pub mod validate_groups { - use crate as dash_sdk_bindings; - } - } - - pub mod extra { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod drive_api_tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(any( - feature = "value-conversion", - feature = "data-contract-cbor-conversion", - feature = "json-conversion", - feature = "serde-conversion" - ))] - pub mod conversion { - use crate as dash_sdk_bindings; - - #[cfg(feature = "value-conversion")] - pub mod value { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "json-conversion")] - pub mod json { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "data-contract-cbor-conversion")] - pub mod cbor { - use crate as dash_sdk_bindings; - } - } - } - - pub mod util { - use crate as dash_sdk_bindings; - - pub mod json_path { use crate as dash_sdk_bindings; } - - pub mod json_value { - use crate as dash_sdk_bindings; - - pub mod insert_with_path { use crate as dash_sdk_bindings; } - - pub mod remove_path { use crate as dash_sdk_bindings; } - } - - pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings; } - - pub mod strings { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod deserializer { use crate as dash_sdk_bindings; } - - pub mod json_schema { use crate as dash_sdk_bindings; } - - pub mod vec { use crate as dash_sdk_bindings; } - - #[cfg(feature = "cbor")] - pub mod cbor_value { - use crate as dash_sdk_bindings; - - pub mod convert { use crate as dash_sdk_bindings; } - - pub mod map { use crate as dash_sdk_bindings; } - - pub mod canonical { use crate as dash_sdk_bindings; } - } - } - - pub mod tokens { - use crate as dash_sdk_bindings; - - pub mod info { use crate as dash_sdk_bindings; } - - pub mod status { use crate as dash_sdk_bindings; } - - pub mod contract_info { use crate as dash_sdk_bindings; } - - pub mod token_pricing_schedule { use crate as dash_sdk_bindings; } - - pub mod token_event { use crate as dash_sdk_bindings; } - - pub mod token_payment_info { - use crate as dash_sdk_bindings; - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod group { - use crate as dash_sdk_bindings; - - pub mod group_action { use crate as dash_sdk_bindings; } - } - - pub mod validation { - use crate as dash_sdk_bindings; - - #[cfg(feature = "validation")] - pub mod byte_array_keyword { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "validation")] - pub mod json_schema_validator { - use crate as dash_sdk_bindings; - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod compile { use crate as dash_sdk_bindings; } - - pub mod new { use crate as dash_sdk_bindings; } - - pub mod validate { use crate as dash_sdk_bindings; } - } - } - - pub mod validation_result { - use crate as dash_sdk_bindings; - - pub mod flatten { - use crate as dash_sdk_bindings; - - pub mod v1 { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod merge_many { - use crate as dash_sdk_bindings; - - pub mod v1 { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - - pub mod balances { - use crate as dash_sdk_bindings; - - pub mod credits { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - #[cfg(feature = "system_contracts")] - pub mod system_data_contracts { - use crate as dash_sdk_bindings; - } - - pub mod bls { use crate as dash_sdk_bindings; } - } -} - -#[allow( - clippy::let_and_return, - clippy::suspicious_else_formatting, - clippy::redundant_field_names, - dead_code, - non_camel_case_types, - non_snake_case, - non_upper_case_globals, - redundant_semicolons, - unreachable_patterns, - unused_braces, - unused_imports, - unused_parens, - unused_qualifications, - unused_unsafe, - unused_variables -)] -pub mod generics { - use crate as dash_sdk_bindings; - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_dpp_document_Document { - pub count: usize, - pub values: *mut *mut crate::fermented::types::dpp::document::dpp_document_Document, - } - - impl ferment::FFIConversionFrom> for Vec_dpp_document_Document { - unsafe fn ffi_from_const(ffi: *const Vec_dpp_document_Document) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_dpp_document_Document { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_dpp_document_Document { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_dpp_document_Document { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_dpp_document_Document_ctor(count: usize, values: *mut *mut crate::fermented::types::dpp::document::dpp_document_Document) -> *mut Vec_dpp_document_Document { ferment::boxed(Vec_dpp_document_Document { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_dpp_document_Document_destroy(ffi: *mut Vec_dpp_document_Document) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_drive_query_conditions_WhereClause { - pub count: usize, - pub values: *mut *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereClause, - } - - impl ferment::FFIConversionFrom> for Vec_drive_query_conditions_WhereClause { - unsafe fn ffi_from_const(ffi: *const Vec_drive_query_conditions_WhereClause) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_drive_query_conditions_WhereClause { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_drive_query_conditions_WhereClause { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor(count: usize, values: *mut *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereClause) -> *mut Vec_drive_query_conditions_WhereClause { ferment::boxed(Vec_drive_query_conditions_WhereClause { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy(ffi: *mut Vec_drive_query_conditions_WhereClause) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_Vec_u8_err_String { - pub ok: *mut crate::fermented::generics::Vec_u8, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom, String>> for Result_ok_Vec_u8_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_Vec_u8_err_String) -> Result, String> { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >>::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo, String>> for Result_ok_Vec_u8_err_String { - unsafe fn ffi_to_const(obj: Result, String>) -> *const Result_ok_Vec_u8_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_Vec_u8_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor(ok: *mut crate::fermented::generics::Vec_u8, error: *mut std::os::raw::c_char) -> *mut Result_ok_Vec_u8_err_String { ferment::boxed(Result_ok_Vec_u8_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy(ffi: *mut Result_ok_Vec_u8_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Arr_u8_20 { - pub count: usize, - pub values: *mut u8, - } - - impl ferment::FFIConversionFrom<[u8; 20]> for Arr_u8_20 { - unsafe fn ffi_from_const(ffi: *const Arr_u8_20) -> [u8; 20] { - let ffi_ref = &*ffi; - let vec: Vec = ferment::from_primitive_group(ffi_ref.values, ffi_ref.count); - vec.try_into().unwrap() - } - } - - impl ferment::FFIConversionTo<[u8; 20]> for Arr_u8_20 { unsafe fn ffi_to_const(obj: [u8; 20]) -> *const Arr_u8_20 { ferment::boxed(Self { count: obj.len(), values: ferment::to_primitive_group(obj.into_iter()) }) } } - - impl Drop for Arr_u8_20 { fn drop(&mut self) { unsafe { ferment::unbox_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Arr_u8_20_ctor(count: usize, values: *mut u8) -> *mut Arr_u8_20 { ferment::boxed(Arr_u8_20 { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Arr_u8_20_destroy(ffi: *mut Arr_u8_20) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { - pub ok: *mut crate::fermented::types::platform_mobile::state_transition::platform_mobile_state_transition_StateTransitionInfo, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor(ok: *mut crate::fermented::types::platform_mobile::state_transition::platform_mobile_state_transition_StateTransitionInfo, error: *mut std::os::raw::c_char) -> *mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment::boxed(Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy(ffi: *mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_Tuple_platform_value_Value_platform_value_Value { - pub count: usize, - pub values: *mut *mut crate::fermented::generics::Tuple_platform_value_Value_platform_value_Value, - } - - impl ferment::FFIConversionFrom> for Vec_Tuple_platform_value_Value_platform_value_Value { - unsafe fn ffi_from_const(ffi: *const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec<(platform_value::Value, platform_value::Value)> { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const(obj: Vec<(platform_value::Value, platform_value::Value)>) -> *const Vec_Tuple_platform_value_Value_platform_value_Value { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor(count: usize, values: *mut *mut crate::fermented::generics::Tuple_platform_value_Value_platform_value_Value) -> *mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment::boxed(Vec_Tuple_platform_value_Value_platform_value_Value { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy(ffi: *mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { - pub ok: *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom, String>> for Result_ok_Option_dpp_identity_identity_Identity_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result, String> { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from_opt(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo, String>> for Result_ok_Option_dpp_identity_identity_Identity_err_String { - unsafe fn ffi_to_const(obj: Result, String>) -> *const Result_ok_Option_dpp_identity_identity_Identity_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to_opt(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor(ok: *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity, error: *mut std::os::raw::c_char) -> *mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment::boxed(Result_ok_Option_dpp_identity_identity_Identity_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy(ffi: *mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { - pub ok: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Contenders, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_drive_proof_verifier_types_Contenders_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_drive_proof_verifier_types_Contenders_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_drive_proof_verifier_types_Contenders_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor(ok: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Contenders, error: *mut std::os::raw::c_char) -> *mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment::boxed(Result_ok_drive_proof_verifier_types_Contenders_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy(ffi: *mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { - pub ok: *mut crate::fermented::types::platform_mobile::data_contracts::platform_mobile_data_contracts_DataContractFFI, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom, String>> for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result, String> { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from_opt(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo, String>> for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { - unsafe fn ffi_to_const(obj: Result, String>) -> *const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to_opt(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor(ok: *mut crate::fermented::types::platform_mobile::data_contracts::platform_mobile_data_contracts_DataContractFFI, error: *mut std::os::raw::c_char) -> *mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment::boxed(Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy(ffi: *mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { - pub o_0: *mut crate::fermented::types::dpp::prelude::dpp_prelude_TimestampMillis, - pub o_1: *mut crate::fermented::generics::Vec_dpp_voting_vote_polls_VotePoll, - } - - impl ferment::FFIConversionFrom<(dpp::prelude::TimestampMillis, Vec)> for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { - unsafe fn ffi_from_const(ffi: *const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp::prelude::TimestampMillis, Vec) { - let ffi_ref = &*ffi; - (ferment::FFIConversionFrom::ffi_from(ffi_ref.o_0), ferment::FFIConversionFrom::ffi_from(ffi_ref.o_1)) - } - } - - impl ferment::FFIConversionTo<(dpp::prelude::TimestampMillis, Vec)> for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const(obj: (dpp::prelude::TimestampMillis, Vec)) -> *const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment::boxed(Self { o_0: ferment::FFIConversionTo::ffi_to(obj.0), o_1: ferment::FFIConversionTo::ffi_to(obj.1) }) } } - - impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { - fn drop(&mut self) { - unsafe { - ferment::unbox_any(self.o_0); - ferment::unbox_any(self.o_1); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor(o_0: *mut crate::fermented::types::dpp::prelude::dpp_prelude_TimestampMillis, o_1: *mut crate::fermented::generics::Vec_dpp_voting_vote_polls_VotePoll) -> *mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment::boxed(Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0, o_1 }) } - - #[no_mangle] - pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy(ffi: *mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { - pub ok: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ResourceVotesByIdentity, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor(ok: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ResourceVotesByIdentity, error: *mut std::os::raw::c_char) -> *mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment::boxed(Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy(ffi: *mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Arr_u8_2 { - pub count: usize, - pub values: *mut u8, - } - - impl ferment::FFIConversionFrom<[u8; 2]> for Arr_u8_2 { - unsafe fn ffi_from_const(ffi: *const Arr_u8_2) -> [u8; 2] { - let ffi_ref = &*ffi; - let vec: Vec = ferment::from_primitive_group(ffi_ref.values, ffi_ref.count); - vec.try_into().unwrap() - } - } - - impl ferment::FFIConversionTo<[u8; 2]> for Arr_u8_2 { unsafe fn ffi_to_const(obj: [u8; 2]) -> *const Arr_u8_2 { ferment::boxed(Self { count: obj.len(), values: ferment::to_primitive_group(obj.into_iter()) }) } } - - impl Drop for Arr_u8_2 { fn drop(&mut self) { unsafe { ferment::unbox_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Arr_u8_2_ctor(count: usize, values: *mut u8) -> *mut Arr_u8_2 { ferment::boxed(Arr_u8_2 { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Arr_u8_2_destroy(ffi: *mut Arr_u8_2) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Arr_u8_36 { - pub count: usize, - pub values: *mut u8, - } - - impl ferment::FFIConversionFrom<[u8; 36]> for Arr_u8_36 { - unsafe fn ffi_from_const(ffi: *const Arr_u8_36) -> [u8; 36] { - let ffi_ref = &*ffi; - let vec: Vec = ferment::from_primitive_group(ffi_ref.values, ffi_ref.count); - vec.try_into().unwrap() - } - } - - impl ferment::FFIConversionTo<[u8; 36]> for Arr_u8_36 { unsafe fn ffi_to_const(obj: [u8; 36]) -> *const Arr_u8_36 { ferment::boxed(Self { count: obj.len(), values: ferment::to_primitive_group(obj.into_iter()) }) } } - - impl Drop for Arr_u8_36 { fn drop(&mut self) { unsafe { ferment::unbox_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Arr_u8_36_ctor(count: usize, values: *mut u8) -> *mut Arr_u8_36 { ferment::boxed(Arr_u8_36 { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Arr_u8_36_destroy(ffi: *mut Arr_u8_36) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_dpp_voting_vote_polls_VotePoll { - pub count: usize, - pub values: *mut *mut crate::fermented::types::dpp::voting::vote_polls::dpp_voting_vote_polls_VotePoll, - } - - impl ferment::FFIConversionFrom> for Vec_dpp_voting_vote_polls_VotePoll { - unsafe fn ffi_from_const(ffi: *const Vec_dpp_voting_vote_polls_VotePoll) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_dpp_voting_vote_polls_VotePoll { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor(count: usize, values: *mut *mut crate::fermented::types::dpp::voting::vote_polls::dpp_voting_vote_polls_VotePoll) -> *mut Vec_dpp_voting_vote_polls_VotePoll { ferment::boxed(Vec_dpp_voting_vote_polls_VotePoll { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy(ffi: *mut Vec_dpp_voting_vote_polls_VotePoll) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_dpp_voting_votes_Vote_err_String { - pub ok: *mut crate::fermented::types::dpp::voting::votes::dpp_voting_votes_Vote, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_dpp_voting_votes_Vote_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_dpp_voting_votes_Vote_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_dpp_voting_votes_Vote_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_dpp_voting_votes_Vote_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor(ok: *mut crate::fermented::types::dpp::voting::votes::dpp_voting_votes_Vote, error: *mut std::os::raw::c_char) -> *mut Result_ok_dpp_voting_votes_Vote_err_String { ferment::boxed(Result_ok_dpp_voting_votes_Vote_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy(ffi: *mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_u64_err_String { - pub ok: *mut u64, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_u64_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_u64_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| *o, ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_u64_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_u64_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::boxed(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_u64_err_String { - fn drop(&mut self) { - unsafe { - ferment::destroy_opt_primitive(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_u64_err_String_ctor(ok: *mut u64, error: *mut std::os::raw::c_char) -> *mut Result_ok_u64_err_String { ferment::boxed(Result_ok_u64_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_u64_err_String_destroy(ffi: *mut Result_ok_u64_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_dpp_identity_identity_public_key_KeyID { - pub count: usize, - pub values: *mut *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID, - } - - impl ferment::FFIConversionFrom> for Vec_dpp_identity_identity_public_key_KeyID { - unsafe fn ffi_from_const(ffi: *const Vec_dpp_identity_identity_public_key_KeyID) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_dpp_identity_identity_public_key_KeyID { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor(count: usize, values: *mut *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID) -> *mut Vec_dpp_identity_identity_public_key_KeyID { ferment::boxed(Vec_dpp_identity_identity_public_key_KeyID { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy(ffi: *mut Vec_dpp_identity_identity_public_key_KeyID) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { - pub count: usize, - pub keys: *mut *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub values: *mut *mut crate::fermented::types::dpp::voting::votes::resource_vote::dpp_voting_votes_resource_vote_ResourceVote, - } - - impl ferment::FFIConversionFrom>> for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { - unsafe fn ffi_from_const(ffi: *const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std::collections::BTreeMap> { - let ffi_ref = &*ffi; - ferment::fold_to_map(ffi_ref.count, ffi_ref.keys, ffi_ref.values, |o| >::ffi_from(o), |o| >::ffi_from_opt(o)) - } - } - - impl ferment::FFIConversionTo>> for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const(obj: std::collections::BTreeMap>) -> *const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment::boxed(Self { count: obj.len(), keys: ferment::to_complex_group(obj.keys().cloned()), values: ferment::to_opt_complex_group(obj.values().cloned()) }) } } - - impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_vec_ptr(self.keys, self.count); - ferment::unbox_any_vec_ptr(self.values, self.count); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor(count: usize, keys: *mut *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, values: *mut *mut crate::fermented::types::dpp::voting::votes::resource_vote::dpp_voting_votes_resource_vote_ResourceVote) -> *mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment::boxed(std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count, keys, values }) } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy(ffi: *mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { - pub count: usize, - pub values: *mut *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Voter, - } - - impl ferment::FFIConversionFrom> for std_collections_BTreeSet_drive_proof_verifier_types_Voter { - unsafe fn ffi_from_const(ffi: *const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std::collections::BTreeSet { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const(obj: std::collections::BTreeSet) -> *const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor(count: usize, values: *mut *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Voter) -> *mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment::boxed(std_collections_BTreeSet_drive_proof_verifier_types_Voter { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy(ffi: *mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { - pub count: usize, - pub keys: *mut *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub values: *mut *mut crate::fermented::types::dpp::voting::contender_structs::contender::dpp_voting_contender_structs_contender_ContenderWithSerializedDocument, - } - - impl ferment::FFIConversionFrom> for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { - unsafe fn ffi_from_const(ffi: *const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std::collections::BTreeMap { - let ffi_ref = &*ffi; - ferment::fold_to_map(ffi_ref.count, ffi_ref.keys, ffi_ref.values, |o| >::ffi_from(o), |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const(obj: std::collections::BTreeMap) -> *const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment::boxed(Self { count: obj.len(), keys: ferment::to_complex_group(obj.keys().cloned()), values: ferment::to_complex_group(obj.values().cloned()) }) } } - - impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_vec_ptr(self.keys, self.count); - ferment::unbox_any_vec_ptr(self.values, self.count); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor(count: usize, keys: *mut *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, values: *mut *mut crate::fermented::types::dpp::voting::contender_structs::contender::dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> *mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment::boxed(std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count, keys, values }) } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy(ffi: *mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_Vec_dpp_document_Document_err_String { - pub ok: *mut crate::fermented::generics::Vec_dpp_document_Document, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom, String>> for Result_ok_Vec_dpp_document_Document_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_Vec_dpp_document_Document_err_String) -> Result, String> { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >>::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo, String>> for Result_ok_Vec_dpp_document_Document_err_String { - unsafe fn ffi_to_const(obj: Result, String>) -> *const Result_ok_Vec_dpp_document_Document_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_Vec_dpp_document_Document_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor(ok: *mut crate::fermented::generics::Vec_dpp_document_Document, error: *mut std::os::raw::c_char) -> *mut Result_ok_Vec_dpp_document_Document_err_String { ferment::boxed(Result_ok_Vec_dpp_document_Document_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy(ffi: *mut Result_ok_Vec_dpp_document_Document_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Tuple_platform_value_Value_platform_value_Value { - pub o_0: *mut crate::fermented::types::platform_value::platform_value_Value, - pub o_1: *mut crate::fermented::types::platform_value::platform_value_Value, - } - - impl ferment::FFIConversionFrom<(platform_value::Value, platform_value::Value)> for Tuple_platform_value_Value_platform_value_Value { - unsafe fn ffi_from_const(ffi: *const Tuple_platform_value_Value_platform_value_Value) -> (platform_value::Value, platform_value::Value) { - let ffi_ref = &*ffi; - (ferment::FFIConversionFrom::ffi_from(ffi_ref.o_0), ferment::FFIConversionFrom::ffi_from(ffi_ref.o_1)) - } - } - - impl ferment::FFIConversionTo<(platform_value::Value, platform_value::Value)> for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const(obj: (platform_value::Value, platform_value::Value)) -> *const Tuple_platform_value_Value_platform_value_Value { ferment::boxed(Self { o_0: ferment::FFIConversionTo::ffi_to(obj.0), o_1: ferment::FFIConversionTo::ffi_to(obj.1) }) } } - - impl Drop for Tuple_platform_value_Value_platform_value_Value { - fn drop(&mut self) { - unsafe { - ferment::unbox_any(self.o_0); - ferment::unbox_any(self.o_1); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor(o_0: *mut crate::fermented::types::platform_value::platform_value_Value, o_1: *mut crate::fermented::types::platform_value::platform_value_Value) -> *mut Tuple_platform_value_Value_platform_value_Value { ferment::boxed(Tuple_platform_value_Value_platform_value_Value { o_0, o_1 }) } - - #[no_mangle] - pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy(ffi: *mut Tuple_platform_value_Value_platform_value_Value) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_dpp_document_Document_err_String { - pub ok: *mut crate::fermented::types::dpp::document::dpp_document_Document, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_dpp_document_Document_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_dpp_document_Document_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_dpp_document_Document_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_dpp_document_Document_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_dpp_document_Document_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor(ok: *mut crate::fermented::types::dpp::document::dpp_document_Document, error: *mut std::os::raw::c_char) -> *mut Result_ok_dpp_document_Document_err_String { ferment::boxed(Result_ok_dpp_document_Document_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy(ffi: *mut Result_ok_dpp_document_Document_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_drive_proof_verifier_types_ContestedResource { - pub count: usize, - pub values: *mut *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ContestedResource, - } - - impl ferment::FFIConversionFrom> for Vec_drive_proof_verifier_types_ContestedResource { - unsafe fn ffi_from_const(ffi: *const Vec_drive_proof_verifier_types_ContestedResource) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_drive_proof_verifier_types_ContestedResource { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor(count: usize, values: *mut *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ContestedResource) -> *mut Vec_drive_proof_verifier_types_ContestedResource { ferment::boxed(Vec_drive_proof_verifier_types_ContestedResource { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy(ffi: *mut Vec_drive_proof_verifier_types_ContestedResource) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { - pub count: usize, - pub values: *mut *mut crate::fermented::generics::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll, - } - - impl ferment::FFIConversionFrom)>> for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { - unsafe fn ffi_from_const(ffi: *const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec<(dpp::prelude::TimestampMillis, Vec)> { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo)>> for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const(obj: Vec<(dpp::prelude::TimestampMillis, Vec)>) -> *const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor(count: usize, values: *mut *mut crate::fermented::generics::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> *mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment::boxed(Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy(ffi: *mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { - pub count: usize, - pub values: *mut *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey, - } - - impl ferment::FFIConversionFrom> for Vec_dpp_identity_identity_public_key_IdentityPublicKey { - unsafe fn ffi_from_const(ffi: *const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor(count: usize, values: *mut *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey) -> *mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment::boxed(Vec_dpp_identity_identity_public_key_IdentityPublicKey { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy(ffi: *mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_platform_value_Value { - pub count: usize, - pub values: *mut *mut crate::fermented::types::platform_value::platform_value_Value, - } - - impl ferment::FFIConversionFrom> for Vec_platform_value_Value { - unsafe fn ffi_from_const(ffi: *const Vec_platform_value_Value) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_platform_value_Value { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_platform_value_Value { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_platform_value_Value { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_platform_value_Value_ctor(count: usize, values: *mut *mut crate::fermented::types::platform_value::platform_value_Value) -> *mut Vec_platform_value_Value { ferment::boxed(Vec_platform_value_Value { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_platform_value_Value_destroy(ffi: *mut Vec_platform_value_Value) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { - pub ok: *mut crate::fermented::types::dpp::voting::votes::dpp_voting_votes_Vote, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom, String>> for Result_ok_Option_dpp_voting_votes_Vote_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result, String> { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from_opt(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo, String>> for Result_ok_Option_dpp_voting_votes_Vote_err_String { - unsafe fn ffi_to_const(obj: Result, String>) -> *const Result_ok_Option_dpp_voting_votes_Vote_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to_opt(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor(ok: *mut crate::fermented::types::dpp::voting::votes::dpp_voting_votes_Vote, error: *mut std::os::raw::c_char) -> *mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment::boxed(Result_ok_Option_dpp_voting_votes_Vote_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy(ffi: *mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { - pub ok: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ContestedResources, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor(ok: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ContestedResources, error: *mut std::os::raw::c_char) -> *mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment::boxed(Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy(ffi: *mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_String { - pub count: usize, - pub values: *mut *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Vec_String { - unsafe fn ffi_from_const(ffi: *const Vec_String) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_String { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_String { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_String { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr_composer(self.values, self.count, ferment::unbox_string); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_String_ctor(count: usize, values: *mut *mut std::os::raw::c_char) -> *mut Vec_String { ferment::boxed(Vec_String { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_String_destroy(ffi: *mut Vec_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { - pub count: usize, - pub keys: *mut *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID, - pub values: *mut *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey, - } - - impl ferment::FFIConversionFrom> for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { - unsafe fn ffi_from_const(ffi: *const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std::collections::BTreeMap { - let ffi_ref = &*ffi; - ferment::fold_to_map(ffi_ref.count, ffi_ref.keys, ffi_ref.values, |o| >::ffi_from(o), |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const(obj: std::collections::BTreeMap) -> *const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment::boxed(Self { count: obj.len(), keys: ferment::to_complex_group(obj.keys().cloned()), values: ferment::to_complex_group(obj.values().cloned()) }) } } - - impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_vec_ptr(self.keys, self.count); - ferment::unbox_any_vec_ptr(self.values, self.count); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor(count: usize, keys: *mut *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID, values: *mut *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey) -> *mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment::boxed(std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count, keys, values }) } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy(ffi: *mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Arr_u8_32 { - pub count: usize, - pub values: *mut u8, - } - - impl ferment::FFIConversionFrom<[u8; 32]> for Arr_u8_32 { - unsafe fn ffi_from_const(ffi: *const Arr_u8_32) -> [u8; 32] { - let ffi_ref = &*ffi; - let vec: Vec = ferment::from_primitive_group(ffi_ref.values, ffi_ref.count); - vec.try_into().unwrap() - } - } - - impl ferment::FFIConversionTo<[u8; 32]> for Arr_u8_32 { unsafe fn ffi_to_const(obj: [u8; 32]) -> *const Arr_u8_32 { ferment::boxed(Self { count: obj.len(), values: ferment::to_primitive_group(obj.into_iter()) }) } } - - impl Drop for Arr_u8_32 { fn drop(&mut self) { unsafe { ferment::unbox_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Arr_u8_32_ctor(count: usize, values: *mut u8) -> *mut Arr_u8_32 { ferment::boxed(Arr_u8_32 { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Arr_u8_32_destroy(ffi: *mut Arr_u8_32) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_drive_query_ordering_OrderClause { - pub count: usize, - pub values: *mut *mut crate::fermented::types::drive::query::ordering::drive_query_ordering_OrderClause, - } - - impl ferment::FFIConversionFrom> for Vec_drive_query_ordering_OrderClause { - unsafe fn ffi_from_const(ffi: *const Vec_drive_query_ordering_OrderClause) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_drive_query_ordering_OrderClause { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_drive_query_ordering_OrderClause { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor(count: usize, values: *mut *mut crate::fermented::types::drive::query::ordering::drive_query_ordering_OrderClause) -> *mut Vec_drive_query_ordering_OrderClause { ferment::boxed(Vec_drive_query_ordering_OrderClause { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy(ffi: *mut Vec_drive_query_ordering_OrderClause) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_dpp_identity_identity_Identity_err_String { - pub ok: *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_dpp_identity_identity_Identity_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_dpp_identity_identity_Identity_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_dpp_identity_identity_Identity_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_dpp_identity_identity_Identity_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor(ok: *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity, error: *mut std::os::raw::c_char) -> *mut Result_ok_dpp_identity_identity_Identity_err_String { ferment::boxed(Result_ok_dpp_identity_identity_Identity_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy(ffi: *mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_u8 { - pub count: usize, - pub values: *mut u8, - } - - impl ferment::FFIConversionFrom> for Vec_u8 { - unsafe fn ffi_from_const(ffi: *const Vec_u8) -> Vec { - let ffi_ref = &*ffi; - ferment::from_primitive_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_u8 { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_u8 { ferment::boxed(Self { count: obj.len(), values: ferment::to_primitive_group(obj.into_iter()) }) } } - - impl Drop for Vec_u8 { fn drop(&mut self) { unsafe { ferment::unbox_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_u8_ctor(count: usize, values: *mut u8) -> *mut Vec_u8 { ferment::boxed(Vec_u8 { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_u8_destroy(ffi: *mut Vec_u8) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { - pub ok: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_VotePollsGroupedByTimestamp, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor(ok: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_VotePollsGroupedByTimestamp, error: *mut std::os::raw::c_char) -> *mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment::boxed(Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy(ffi: *mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { - pub o_0: *mut crate::fermented::types::dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo, - pub o_1: *mut crate::fermented::types::dpp::block::block_info::dpp_block_block_info_BlockInfo, - } - - impl ferment::FFIConversionFrom<(dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo, dpp::block::block_info::BlockInfo)> for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { - unsafe fn ffi_from_const(ffi: *const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo, dpp::block::block_info::BlockInfo) { - let ffi_ref = &*ffi; - (ferment::FFIConversionFrom::ffi_from(ffi_ref.o_0), ferment::FFIConversionFrom::ffi_from(ffi_ref.o_1)) - } - } - - impl ferment::FFIConversionTo<(dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo, dpp::block::block_info::BlockInfo)> for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const(obj: (dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo, dpp::block::block_info::BlockInfo)) -> *const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment::boxed(Self { o_0: ferment::FFIConversionTo::ffi_to(obj.0), o_1: ferment::FFIConversionTo::ffi_to(obj.1) }) } } - - impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { - fn drop(&mut self) { - unsafe { - ferment::unbox_any(self.o_0); - ferment::unbox_any(self.o_1); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor(o_0: *mut crate::fermented::types::dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo, o_1: *mut crate::fermented::types::dpp::block::block_info::dpp_block_block_info_BlockInfo) -> *mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment::boxed(Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0, o_1 }) } - - #[no_mangle] - pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy(ffi: *mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct platform_mobile_provider_Cache_platform_value_types_identifier_Identifier_dpp_data_contract_DataContract { - pub obj: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_provider_Cache_platform_value_types_identifier_Identifier_dpp_data_contract_DataContract_ctor(obj: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut platform_mobile_provider_Cache_platform_value_types_identifier_Identifier_dpp_data_contract_DataContract { ferment::boxed(platform_mobile_provider_Cache_platform_value_types_identifier_Identifier_dpp_data_contract_DataContract { obj }) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_provider_Cache_platform_value_types_identifier_Identifier_dpp_data_contract_DataContract_destroy(ffi: *mut platform_mobile_provider_Cache_platform_value_types_identifier_Identifier_dpp_data_contract_DataContract) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct std_collections_Map_keys_String_values_platform_value_Value { - pub count: usize, - pub keys: *mut *mut std::os::raw::c_char, - pub values: *mut *mut crate::fermented::types::platform_value::platform_value_Value, - } - - impl ferment::FFIConversionFrom> for std_collections_Map_keys_String_values_platform_value_Value { - unsafe fn ffi_from_const(ffi: *const std_collections_Map_keys_String_values_platform_value_Value) -> std::collections::BTreeMap { - let ffi_ref = &*ffi; - ferment::fold_to_map(ffi_ref.count, ffi_ref.keys, ffi_ref.values, |o| >::ffi_from(o), |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const(obj: std::collections::BTreeMap) -> *const std_collections_Map_keys_String_values_platform_value_Value { ferment::boxed(Self { count: obj.len(), keys: ferment::to_complex_group(obj.keys().cloned()), values: ferment::to_complex_group(obj.values().cloned()) }) } } - - impl Drop for std_collections_Map_keys_String_values_platform_value_Value { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_vec_ptr_composer(self.keys, self.count, ferment::unbox_string); - ferment::unbox_any_vec_ptr(self.values, self.count); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor(count: usize, keys: *mut *mut std::os::raw::c_char, values: *mut *mut crate::fermented::types::platform_value::platform_value_Value) -> *mut std_collections_Map_keys_String_values_platform_value_Value { ferment::boxed(std_collections_Map_keys_String_values_platform_value_Value { count, keys, values }) } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy(ffi: *mut std_collections_Map_keys_String_values_platform_value_Value) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { - pub ok: *mut crate::fermented::generics::Vec_dpp_identity_identity_public_key_IdentityPublicKey, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom, String>> for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result, String> { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >>::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo, String>> for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { - unsafe fn ffi_to_const(obj: Result, String>) -> *const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor(ok: *mut crate::fermented::generics::Vec_dpp_identity_identity_public_key_IdentityPublicKey, error: *mut std::os::raw::c_char) -> *mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment::boxed(Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy(ffi: *mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment::unbox_any(ffi); } -} \ No newline at end of file +# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod sync { use crate as dash_sdk_bindings ; } pub mod core { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod platform { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod builders { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; } } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod readers { use crate as dash_sdk_bindings ; } pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod ser { use crate as dash_sdk_bindings ; } pub mod de { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod macros { use crate as dash_sdk_bindings ; } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod unproved { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } } pub mod verify { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } } pub mod token { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_elements { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_restored_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; } } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod vote_storage_form { use crate as dash_sdk_bindings ; } pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } pub mod queue { use crate as dash_sdk_bindings ; pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } } } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod address_funds { use crate as dash_sdk_bindings ; pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } } pub mod platform_address { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod config { use crate as dash_sdk_bindings ; pub mod moderation { use crate as dash_sdk_bindings ; pub mod reason { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod array { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; } } pub mod distribution_function { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod encode { use crate as dash_sdk_bindings ; } } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod util { use crate as dash_sdk_bindings ; pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod vec { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod canonical { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod convert { use crate as dash_sdk_bindings ; } } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer { use crate as dash_sdk_bindings ; } pub mod safe_integer_map { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } } pub mod bls { use crate as dash_sdk_bindings ; } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fee { use crate as dash_sdk_bindings ; pub mod default_costs { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } } } pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod unshield { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod basic { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod state { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } pub mod serialize { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod serialization_traits { use crate as dash_sdk_bindings ; pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file diff --git a/dash-sdk-bindings/src/lib.rs b/dash-sdk-bindings/src/lib.rs index 8badf281..8cbeee07 100644 --- a/dash-sdk-bindings/src/lib.rs +++ b/dash-sdk-bindings/src/lib.rs @@ -1 +1,6 @@ -mod fermented; \ No newline at end of file +// Ferment preserves dependency-owned cfg feature names in generated bindings. +#![allow(unexpected_cfgs)] + +pub use dpp::identity; + +mod fermented; diff --git a/dash-sdk-java/build.gradle b/dash-sdk-java/build.gradle index e5b46ccd..1d382f26 100644 --- a/dash-sdk-java/build.gradle +++ b/dash-sdk-java/build.gradle @@ -24,6 +24,11 @@ cmake { sourceFolder=file("$projectDir/src/main/cpp") } +task generateSWIGMetadata(type: Exec) { + workingDir projectDir + commandLine 'python3', 'ignore.py' +} + // TODO: move this to the cmake project task generateSWIG(type: Exec) { // Define the input directory where your .i files are located @@ -37,8 +42,11 @@ task generateSWIG(type: Exec) { file(javaOutputDir).mkdirs() file(cppOutputDir).mkdirs() - // execute ignore.py - commandLine 'python3', 'ignore.py' + doFirst { + delete javaOutputDir, cppOutputDir + file(javaOutputDir).mkdirs() + file(cppOutputDir).mkdirs() + } // Command to execute SWIG // Make sure to adjust the parameters according to your needs @@ -53,6 +61,7 @@ task generateSWIG(type: Exec) { // Ensure that this task is run before compiling the sources tasks.compileJava.dependsOn generateSWIG } +generateSWIG.dependsOn generateSWIGMetadata // Ensure that the generated Java sources are included in compilation sourceSets { @@ -63,7 +72,11 @@ sourceSets { } } tasks.named('compileJava').configure { dependsOn 'cmakeBuild' } -//tasks.named('cmakeBuild').configure { dependsOn 'generateSWIG' } +tasks.configureEach { + if (name == 'cmakeBuild') { + dependsOn generateSWIG + } +} //compileJava.dependsOn cmakeBuild //cmakeBuild.dependsOn generateSWIG @@ -202,4 +215,4 @@ assemble.dependsOn(sourcesJar) // xml.enabled true // xml.destination file("${project.projectDir}/build/reports/jacoco/jacoco.xml") // } -// } \ No newline at end of file +// } diff --git a/dash-sdk-java/src/main/cpp/clone.h b/dash-sdk-java/src/main/cpp/clone.h index 25a22917..49e58d2d 100644 --- a/dash-sdk-java/src/main/cpp/clone.h +++ b/dash-sdk-java/src/main/cpp/clone.h @@ -1,14 +1,8 @@ -inline platform_mobile_data_contracts_DataContractFFI * clone(platform_mobile_data_contracts_DataContractFFI * object) { - return (object != nullptr) ? platform_mobile_data_contracts_DataContractFFI_clone(object) : nullptr; -} -inline platform_mobile_put_ChainAssetLockProofFFI * clone(platform_mobile_put_ChainAssetLockProofFFI * object) { - return (object != nullptr) ? platform_mobile_put_ChainAssetLockProofFFI_clone(object) : nullptr; -} -inline platform_mobile_put_InstantAssetLockProofFFI * clone(platform_mobile_put_InstantAssetLockProofFFI * object) { - return (object != nullptr) ? platform_mobile_put_InstantAssetLockProofFFI_clone(object) : nullptr; +inline std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey * clone(std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey * object) { + return (object != nullptr) ? platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone(object) : nullptr; } -inline OutPoint * clone(OutPoint * object) { - return (object != nullptr) ? platform_mobile_put_OutPointFFI_clone(object) : nullptr; +inline platform_value_types_identifier_Identifier * clone(platform_value_types_identifier_Identifier * object) { + return (object != nullptr) ? platform_mobile_identity_Identifier_clone(object) : nullptr; } inline dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 * clone(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 * object) { return (object != nullptr) ? platform_mobile_identity_IdentityPublicKeyV0_clone(object) : nullptr; @@ -22,123 +16,141 @@ inline dpp_identity_identity_Identity * clone(dpp_identity_identity_Identity * o inline dpp_identity_v0_IdentityV0 * clone(dpp_identity_v0_IdentityV0 * object) { return (object != nullptr) ? platform_mobile_identity_IdentityV0_clone(object) : nullptr; } -inline std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey * clone(std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey * object) { - return (object != nullptr) ? platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone(object) : nullptr; +inline platform_mobile_data_contracts_DataContractFFI * clone(platform_mobile_data_contracts_DataContractFFI * object) { + return (object != nullptr) ? platform_mobile_data_contracts_DataContractFFI_clone(object) : nullptr; } -inline platform_value_types_identifier_Identifier * clone(platform_value_types_identifier_Identifier * object) { - return (object != nullptr) ? platform_mobile_identity_Identifier_clone(object) : nullptr; +inline platform_mobile_put_InstantAssetLockProofFFI * clone(platform_mobile_put_InstantAssetLockProofFFI * object) { + return (object != nullptr) ? platform_mobile_put_InstantAssetLockProofFFI_clone(object) : nullptr; } -inline dpp_document_v0_DocumentV0 * clone(dpp_document_v0_DocumentV0 * object) { - return (object != nullptr) ? platform_mobile_clone_DocumentV0_clone(object) : nullptr; +inline platform_mobile_put_ChainAssetLockProofFFI * clone(platform_mobile_put_ChainAssetLockProofFFI * object) { + return (object != nullptr) ? platform_mobile_put_ChainAssetLockProofFFI_clone(object) : nullptr; } -inline Arr_u8_32 * clone(Arr_u8_32 * object) { - return (object != nullptr) ? platform_mobile_clone_Arr_u8_32_clone(object) : nullptr; +inline OutPoint * clone(OutPoint * object) { + return (object != nullptr) ? platform_mobile_put_OutPointFFI_clone(object) : nullptr; +} +inline dpp_prelude_CoreBlockHeight * clone(dpp_prelude_CoreBlockHeight * object) { + return (object != nullptr) ? platform_mobile_clone_CoreBlockHeight_clone(object) : nullptr; +} +inline drive_proof_verifier_types_ContestedResources * clone(drive_proof_verifier_types_ContestedResources * object) { + return (object != nullptr) ? platform_mobile_clone_ContestedResources_clone(object) : nullptr; +} +inline dpp_voting_contender_structs_contender_ContenderWithSerializedDocument * clone(dpp_voting_contender_structs_contender_ContenderWithSerializedDocument * object) { + return (object != nullptr) ? platform_mobile_clone_ContenderWithSerializedDocument_clone(object) : nullptr; +} +inline platform_value_Value * clone(platform_value_Value * object) { + return (object != nullptr) ? platform_mobile_clone_Value_clone(object) : nullptr; } inline drive_proof_verifier_types_Voter * clone(drive_proof_verifier_types_Voter * object) { return (object != nullptr) ? platform_mobile_clone_Voter_clone(object) : nullptr; } -inline dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice * clone(dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice * object) { - return (object != nullptr) ? platform_mobile_clone_ResourceVoteChoice_clone(object) : nullptr; +inline platform_value_value_map_ValueMap * clone(platform_value_value_map_ValueMap * object) { + return (object != nullptr) ? platform_mobile_clone_ValueMap_clone(object) : nullptr; } -inline dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 * clone(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 * object) { - return (object != nullptr) ? platform_mobile_clone_ContenderWithSerializedDocumentV0_clone(object) : nullptr; +inline Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll * clone(Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll * object) { + return (object != nullptr) ? platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone(object) : nullptr; +} +inline platform_value_types_binary_data_BinaryData * clone(platform_value_types_binary_data_BinaryData * object) { + return (object != nullptr) ? platform_mobile_clone_BinaryData_clone(object) : nullptr; +} +inline Arr_u8_20 * clone(Arr_u8_20 * object) { + return (object != nullptr) ? platform_mobile_clone_Arr_u8_20_clone(object) : nullptr; } inline dpp_document_Document * clone(dpp_document_Document * object) { return (object != nullptr) ? platform_mobile_clone_Document_clone(object) : nullptr; } -inline dpp_prelude_Revision * clone(dpp_prelude_Revision * object) { - return (object != nullptr) ? platform_mobile_clone_Revision_clone(object) : nullptr; +inline Vec_u8 * clone(Vec_u8 * object) { + return (object != nullptr) ? platform_mobile_clone_Vec_u8_clone(object) : nullptr; } -inline drive_proof_verifier_types_ContestedResources * clone(drive_proof_verifier_types_ContestedResources * object) { - return (object != nullptr) ? platform_mobile_clone_ContestedResources_clone(object) : nullptr; +inline platform_value_Hash256 * clone(platform_value_Hash256 * object) { + return (object != nullptr) ? platform_mobile_clone_Hash256_clone(object) : nullptr; } -inline dpp_prelude_CoreBlockHeight * clone(dpp_prelude_CoreBlockHeight * object) { - return (object != nullptr) ? platform_mobile_clone_CoreBlockHeight_clone(object) : nullptr; +inline drive_proof_verifier_types_VotePollsGroupedByTimestamp * clone(drive_proof_verifier_types_VotePollsGroupedByTimestamp * object) { + return (object != nullptr) ? platform_mobile_clone_VotePollsGroupedByTimestamp_clone(object) : nullptr; } -inline Arr_u8_20 * clone(Arr_u8_20 * object) { - return (object != nullptr) ? platform_mobile_clone_Arr_u8_20_clone(object) : nullptr; +inline Vec_platform_value_Value * clone(Vec_platform_value_Value * object) { + return (object != nullptr) ? platform_mobile_clone_Vec_Value_clone(object) : nullptr; } -inline drive_query_conditions_WhereClause * clone(drive_query_conditions_WhereClause * object) { - return (object != nullptr) ? platform_mobile_clone_WhereClause_clone(object) : nullptr; +inline Arr_u8_32 * clone(Arr_u8_32 * object) { + return (object != nullptr) ? platform_mobile_clone_Arr_u8_32_clone(object) : nullptr; } -inline dpp_prelude_TimestampMillis * clone(dpp_prelude_TimestampMillis * object) { - return (object != nullptr) ? platform_mobile_clone_prelude_TimestampMillis_clone(object) : nullptr; +inline dpp_prelude_Revision * clone(dpp_prelude_Revision * object) { + return (object != nullptr) ? platform_mobile_clone_Revision_clone(object) : nullptr; } -inline dpp_identity_identity_public_key_TimestampMillis * clone(dpp_identity_identity_public_key_TimestampMillis * object) { - return (object != nullptr) ? platform_mobile_clone_TimestampMillis_clone(object) : nullptr; +inline dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll * clone(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll * object) { + return (object != nullptr) ? platform_mobile_clone_ContestedDocumentResourceVotePoll_clone(object) : nullptr; } -inline platform_value_Value * clone(platform_value_Value * object) { - return (object != nullptr) ? platform_mobile_clone_Value_clone(object) : nullptr; +inline dpp_identity_identity_public_key_KeyID * clone(dpp_identity_identity_public_key_KeyID * object) { + return (object != nullptr) ? platform_mobile_clone_KeyID_clone(object) : nullptr; } inline drive_query_conditions_WhereOperator * clone(drive_query_conditions_WhereOperator * object) { return (object != nullptr) ? platform_mobile_clone_WhereOperator_clone(object) : nullptr; } -inline drive_proof_verifier_types_Voters * clone(drive_proof_verifier_types_Voters * object) { - return (object != nullptr) ? platform_mobile_clone_Voters_clone(object) : nullptr; +inline dpp_balances_credits_Credits * clone(dpp_balances_credits_Credits * object) { + return (object != nullptr) ? platform_mobile_clone_Credits_clone(object) : nullptr; } -inline Vec_platform_value_Value * clone(Vec_platform_value_Value * object) { - return (object != nullptr) ? platform_mobile_clone_Vec_Value_clone(object) : nullptr; +inline Arr_u8_36 * clone(Arr_u8_36 * object) { + return (object != nullptr) ? platform_mobile_clone_Arr_u8_36_clone(object) : nullptr; } -inline dpp_voting_contender_structs_contender_ContenderWithSerializedDocument * clone(dpp_voting_contender_structs_contender_ContenderWithSerializedDocument * object) { - return (object != nullptr) ? platform_mobile_clone_ContenderWithSerializedDocument_clone(object) : nullptr; +inline dpp_prelude_BlockHeight * clone(dpp_prelude_BlockHeight * object) { + return (object != nullptr) ? platform_mobile_clone_BlockHeight_clone(object) : nullptr; } -inline std_collections_BTreeSet_drive_proof_verifier_types_Voter * clone(std_collections_BTreeSet_drive_proof_verifier_types_Voter * object) { - return (object != nullptr) ? platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone(object) : nullptr; +inline drive_proof_verifier_types_ContestedResource * clone(drive_proof_verifier_types_ContestedResource * object) { + return (object != nullptr) ? platform_mobile_clone_ContestedResource_clone(object) : nullptr; } inline drive_query_ordering_OrderClause * clone(drive_query_ordering_OrderClause * object) { return (object != nullptr) ? platform_mobile_clone_OrderClause_clone(object) : nullptr; } -inline Vec_u8 * clone(Vec_u8 * object) { - return (object != nullptr) ? platform_mobile_clone_Vec_u8_clone(object) : nullptr; +inline dpp_prelude_TimestampMillis * clone(dpp_prelude_TimestampMillis * object) { + return (object != nullptr) ? platform_mobile_clone_prelude_TimestampMillis_clone(object) : nullptr; } -inline drive_proof_verifier_types_VotePollsGroupedByTimestamp * clone(drive_proof_verifier_types_VotePollsGroupedByTimestamp * object) { - return (object != nullptr) ? platform_mobile_clone_VotePollsGroupedByTimestamp_clone(object) : nullptr; +inline dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 * clone(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 * object) { + return (object != nullptr) ? platform_mobile_clone_ContenderWithSerializedDocumentV0_clone(object) : nullptr; } inline dpp_voting_votes_resource_vote_ResourceVote * clone(dpp_voting_votes_resource_vote_ResourceVote * object) { return (object != nullptr) ? platform_mobile_clone_ResourceVote_clone(object) : nullptr; } -inline dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll * clone(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll * object) { - return (object != nullptr) ? platform_mobile_clone_ContestedDocumentResourceVotePoll_clone(object) : nullptr; +inline dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice * clone(dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice * object) { + return (object != nullptr) ? platform_mobile_clone_ResourceVoteChoice_clone(object) : nullptr; +} +inline dpp_voting_votes_Vote * clone(dpp_voting_votes_Vote * object) { + return (object != nullptr) ? platform_mobile_clone_Vote_clone(object) : nullptr; } inline drive_proof_verifier_types_Contenders * clone(drive_proof_verifier_types_Contenders * object) { return (object != nullptr) ? platform_mobile_clone_Contenders_clone(object) : nullptr; } -inline dpp_prelude_BlockHeight * clone(dpp_prelude_BlockHeight * object) { - return (object != nullptr) ? platform_mobile_clone_BlockHeight_clone(object) : nullptr; -} -inline platform_value_value_map_ValueMap * clone(platform_value_value_map_ValueMap * object) { - return (object != nullptr) ? platform_mobile_clone_ValueMap_clone(object) : nullptr; -} -inline dpp_voting_vote_polls_VotePoll * clone(dpp_voting_vote_polls_VotePoll * object) { - return (object != nullptr) ? platform_mobile_clone_VotePoll_clone(object) : nullptr; +inline dpp_identity_identity_public_key_contract_bounds_ContractBounds * clone(dpp_identity_identity_public_key_contract_bounds_ContractBounds * object) { + return (object != nullptr) ? platform_mobile_clone_ContractBounds_clone(object) : nullptr; } -inline dpp_voting_votes_Vote * clone(dpp_voting_votes_Vote * object) { - return (object != nullptr) ? platform_mobile_clone_Vote_clone(object) : nullptr; +inline drive_query_conditions_WhereClause * clone(drive_query_conditions_WhereClause * object) { + return (object != nullptr) ? platform_mobile_clone_WhereClause_clone(object) : nullptr; } inline drive_proof_verifier_types_ResourceVotesByIdentity * clone(drive_proof_verifier_types_ResourceVotesByIdentity * object) { return (object != nullptr) ? platform_mobile_clone_ResourceVotesByIdentity_clone(object) : nullptr; } -inline Arr_u8_36 * clone(Arr_u8_36 * object) { - return (object != nullptr) ? platform_mobile_clone_Arr_u8_36_clone(object) : nullptr; +inline dpp_identity_identity_public_key_TimestampMillis * clone(dpp_identity_identity_public_key_TimestampMillis * object) { + return (object != nullptr) ? platform_mobile_clone_TimestampMillis_clone(object) : nullptr; } -inline std_collections_Map_keys_String_values_platform_value_Value * clone(std_collections_Map_keys_String_values_platform_value_Value * object) { - return (object != nullptr) ? platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone(object) : nullptr; +inline dpp_voting_vote_polls_VotePoll * clone(dpp_voting_vote_polls_VotePoll * object) { + return (object != nullptr) ? platform_mobile_clone_VotePoll_clone(object) : nullptr; } -inline Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll * clone(Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll * object) { - return (object != nullptr) ? platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone(object) : nullptr; +inline dpp_document_v0_DocumentV0 * clone(dpp_document_v0_DocumentV0 * object) { + return (object != nullptr) ? platform_mobile_clone_DocumentV0_clone(object) : nullptr; +} +inline platform_mobile_state_transition_StateTransitionInfo * clone(platform_mobile_state_transition_StateTransitionInfo * object) { + return (object != nullptr) ? platform_mobile_clone_StateTransitionInfo_clone(object) : nullptr; } inline dpp_voting_votes_resource_vote_v0_ResourceVoteV0 * clone(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 * object) { return (object != nullptr) ? platform_mobile_clone_ResourceVoteV0_clone(object) : nullptr; } -inline dpp_identity_identity_public_key_KeyID * clone(dpp_identity_identity_public_key_KeyID * object) { - return (object != nullptr) ? platform_mobile_clone_KeyID_clone(object) : nullptr; +inline drive_proof_verifier_types_Voters * clone(drive_proof_verifier_types_Voters * object) { + return (object != nullptr) ? platform_mobile_clone_Voters_clone(object) : nullptr; } -inline platform_value_Hash256 * clone(platform_value_Hash256 * object) { - return (object != nullptr) ? platform_mobile_clone_Hash256_clone(object) : nullptr; +inline dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 * clone(dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 * object) { + return (object != nullptr) ? platform_mobile_clone_IdentityPublicKeyV1_clone(object) : nullptr; } -inline drive_proof_verifier_types_ContestedResource * clone(drive_proof_verifier_types_ContestedResource * object) { - return (object != nullptr) ? platform_mobile_clone_ContestedResource_clone(object) : nullptr; +inline std_collections_Map_keys_String_values_platform_value_Value * clone(std_collections_Map_keys_String_values_platform_value_Value * object) { + return (object != nullptr) ? platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone(object) : nullptr; } -inline platform_mobile_state_transition_StateTransitionInfo * clone(platform_mobile_state_transition_StateTransitionInfo * object) { - return (object != nullptr) ? platform_mobile_clone_StateTransitionInfo_clone(object) : nullptr; +inline std_collections_BTreeSet_drive_proof_verifier_types_Voter * clone(std_collections_BTreeSet_drive_proof_verifier_types_Voter * object) { + return (object != nullptr) ? platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone(object) : nullptr; } diff --git a/dash-sdk-java/src/main/swig/document.i b/dash-sdk-java/src/main/swig/document.i index c7dc78c3..6cb3158d 100644 --- a/dash-sdk-java/src/main/swig/document.i +++ b/dash-sdk-java/src/main/swig/document.i @@ -53,6 +53,7 @@ START_CLASS(DocumentV0, dpp_document_v0_DocumentV0); clone(created_at_core_block_height), clone(updated_at_core_block_height), clone(transferred_at_core_block_height), + nullptr, nullptr ); } @@ -76,6 +77,7 @@ START_CLASS(DocumentV0, dpp_document_v0_DocumentV0); nullptr, nullptr, nullptr, + nullptr, nullptr ); } @@ -113,4 +115,4 @@ MAP_STRUCT_TYPEMAP( dpp_prelude_BlockHeight *block_height, dpp_prelude_CoreBlockHeight *core_block_height, uint64_t signer_callback -); \ No newline at end of file +); diff --git a/dash-sdk-java/src/main/swig/identity_public_key.i b/dash-sdk-java/src/main/swig/identity_public_key.i index fcdd9fa3..7c032d3b 100644 --- a/dash-sdk-java/src/main/swig/identity_public_key.i +++ b/dash-sdk-java/src/main/swig/identity_public_key.i @@ -1,6 +1,9 @@ %ignore dpp_identity_identity_public_key_v0_IdentityPublicKeyV0::key_type; %ignore dpp_identity_identity_public_key_v0_IdentityPublicKeyV0::purpose; %ignore dpp_identity_identity_public_key_v0_IdentityPublicKeyV0::security_level; +%ignore dpp_identity_identity_public_key_v1_IdentityPublicKeyV1::key_type; +%ignore dpp_identity_identity_public_key_v1_IdentityPublicKeyV1::purpose; +%ignore dpp_identity_identity_public_key_v1_IdentityPublicKeyV1::security_level; %rename(IdentityPublicKeyV0) dpp_identity_identity_public_key_v0_IdentityPublicKeyV0; %extend dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { dpp_identity_identity_public_key_v0_IdentityPublicKeyV0(dpp_identity_identity_public_key_KeyID * keyId, @@ -59,6 +62,52 @@ return *self->security_level; } } + +%rename(IdentityPublicKeyV1) dpp_identity_identity_public_key_v1_IdentityPublicKeyV1; +%extend dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { + dpp_identity_identity_public_key_v1_IdentityPublicKeyV1( + dpp_identity_identity_public_key_KeyID * keyId, + dpp_identity_identity_public_key_purpose_Purpose purpose, + dpp_identity_identity_public_key_security_level_SecurityLevel securityLevel, + dpp_identity_identity_public_key_contract_bounds_ContractBounds * contract_bounds, + dpp_identity_identity_public_key_key_type_KeyType key_type, + bool read_only, + platform_value_types_binary_data_BinaryData * data, + dpp_identity_identity_public_key_TimestampMillis * disabled_at, + dpp_balances_credits_Credits * total_budget, + dpp_identity_identity_public_key_TimestampMillis * expires_at) { + dpp_identity_identity_public_key_purpose_Purpose * purposeObject = intToPurpose(purpose); + dpp_identity_identity_public_key_key_type_KeyType * keyTypeObject = intToKeyType(key_type); + dpp_identity_identity_public_key_security_level_SecurityLevel * securityLevelObject = intToSecurityLevel(securityLevel); + dpp_identity_identity_public_key_KeyID * keyIdObject = dpp_identity_identity_public_key_KeyID_ctor(keyId->_0); + + return dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor( + keyIdObject, + purposeObject, + securityLevelObject, + clone(contract_bounds), + keyTypeObject, + read_only, + clone(data), + clone(disabled_at), + clone(total_budget), + clone(expires_at) + ); + } + ~dpp_identity_identity_public_key_v1_IdentityPublicKeyV1() { + dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy($self); + } + enum dpp_identity_identity_public_key_key_type_KeyType getKeyType() { + return *$self->key_type; + } + enum dpp_identity_identity_public_key_purpose_Purpose getPurpose() { + return *$self->purpose; + } + enum dpp_identity_identity_public_key_security_level_SecurityLevel getSecurityLevel() { + return *$self->security_level; + } +} + %rename(IdentityPublicKey) dpp_identity_identity_public_key_IdentityPublicKey; %rename(IdentityPublicKey_Tag) dpp_identity_identity_public_key_IdentityPublicKey_Tag; @@ -68,6 +117,9 @@ platform_mobile_identity_IdentityPublicKeyV0_clone(ipkv0) ); } + dpp_identity_identity_public_key_IdentityPublicKey(dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 * ipkv1) { + return dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor(clone(ipkv1)); + } ~dpp_identity_identity_public_key_IdentityPublicKey() { dpp_identity_identity_public_key_IdentityPublicKey_destroy($self); } @@ -90,4 +142,4 @@ LIST_STRUCT_TYPEMAP( %ignore std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor(uintptr_t count, dpp_identity_identity_public_key_KeyID **keys, - dpp_identity_identity_public_key_IdentityPublicKey **values); \ No newline at end of file + dpp_identity_identity_public_key_IdentityPublicKey **values); diff --git a/dash-sdk-java/src/main/swig/ignore.i b/dash-sdk-java/src/main/swig/ignore.i index 487e5641..69c824a6 100644 --- a/dash-sdk-java/src/main/swig/ignore.i +++ b/dash-sdk-java/src/main/swig/ignore.i @@ -1,5 +1,137 @@ -%ignore drive_query_conditions_WhereClause_ctor(char *field, drive_query_conditions_WhereOperator *operator_, platform_value_Value *value); -%ignore drive_query_conditions_WhereClause_destroy(drive_query_conditions_WhereClause *ffi); +%ignore dash_sdk_platform_types_identity_PublicKeyHash_ctor(Arr_u8_20 *o_0); +%ignore dash_sdk_platform_types_identity_PublicKeyHash_destroy(dash_sdk_platform_types_identity_PublicKeyHash *ffi); +%ignore platform_value_Value_U128_ctor(uint8_t); +%ignore platform_value_Value_I128_ctor(uint8_t); +%ignore platform_value_Value_U64_ctor(uint64_t o_o_0); +%ignore platform_value_Value_I64_ctor(int64_t o_o_0); +%ignore platform_value_Value_U32_ctor(uint32_t o_o_0); +%ignore platform_value_Value_I32_ctor(int32_t o_o_0); +%ignore platform_value_Value_U16_ctor(uint16_t o_o_0); +%ignore platform_value_Value_I16_ctor(int16_t o_o_0); +%ignore platform_value_Value_U8_ctor(uint8_t o_o_0); +%ignore platform_value_Value_I8_ctor(int8_t o_o_0); +%ignore platform_value_Value_Bytes_ctor(Vec_u8 *o_o_0); +%ignore platform_value_Value_Bytes20_ctor(Arr_u8_20 *o_o_0); +%ignore platform_value_Value_Bytes32_ctor(Arr_u8_32 *o_o_0); +%ignore platform_value_Value_Bytes36_ctor(Arr_u8_36 *o_o_0); +%ignore platform_value_Value_EnumU8_ctor(Vec_u8 *o_o_0); +%ignore platform_value_Value_EnumString_ctor(Vec_String *o_o_0); +%ignore platform_value_Value_Identifier_ctor(platform_value_Hash256 *o_o_0); +%ignore platform_value_Value_Float_ctor(double o_o_0); +%ignore platform_value_Value_Text_ctor(char *o_o_0); +%ignore platform_value_Value_Bool_ctor(bool o_o_0); +%ignore platform_value_Value_Null_ctor(); +%ignore platform_value_Value_Array_ctor(Vec_platform_value_Value *o_o_0); +%ignore platform_value_Value_Map_ctor(platform_value_value_map_ValueMap *o_o_0); +%ignore platform_value_Value_destroy(platform_value_Value *ffi); +%ignore platform_value_Hash256_ctor(Arr_u8_32 *o_0); +%ignore platform_value_Hash256_destroy(platform_value_Hash256 *ffi); +%ignore platform_value_error_Error_Unsupported_ctor(char *o_o_0); +%ignore platform_value_error_Error_StructureError_ctor(char *o_o_0); +%ignore platform_value_error_Error_PathError_ctor(char *o_o_0); +%ignore platform_value_error_Error_IntegerSizeError_ctor(); +%ignore platform_value_error_Error_IntegerParsingError_ctor(); +%ignore platform_value_error_Error_StringDecodingError_ctor(char *o_o_0); +%ignore platform_value_error_Error_KeyMustBeAString_ctor(); +%ignore platform_value_error_Error_ByteLengthNot20BytesError_ctor(char *o_o_0); +%ignore platform_value_error_Error_ByteLengthNot32BytesError_ctor(char *o_o_0); +%ignore platform_value_error_Error_ByteLengthNot36BytesError_ctor(char *o_o_0); +%ignore platform_value_error_Error_SerdeSerializationError_ctor(char *o_o_0); +%ignore platform_value_error_Error_SerdeDeserializationError_ctor(char *o_o_0); +%ignore platform_value_error_Error_CborSerializationError_ctor(char *o_o_0); +%ignore platform_value_error_Error_destroy(platform_value_error_Error *ffi); +%ignore platform_value_value_map_ValueMap_ctor(Vec_Tuple_platform_value_Value_platform_value_Value *o_0); +%ignore platform_value_value_map_ValueMap_destroy(platform_value_value_map_ValueMap *ffi); +%ignore platform_value_types_binary_data_BinaryData_ctor(Vec_u8 *o_0); +%ignore platform_value_types_binary_data_BinaryData_destroy(platform_value_types_binary_data_BinaryData *ffi); +%ignore platform_value_types_identifier_Identifier_ctor(platform_value_types_identifier_IdentifierBytes32 *o_0); +%ignore platform_value_types_identifier_Identifier_destroy(platform_value_types_identifier_Identifier *ffi); +%ignore platform_value_types_identifier_IdentifierBytes32_ctor(Arr_u8_32 *o_0); +%ignore platform_value_types_identifier_IdentifierBytes32_destroy(platform_value_types_identifier_IdentifierBytes32 *ffi); +%ignore drive_proof_verifier_types_ResourceVotesByIdentity_ctor(std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote *o_0); +%ignore drive_proof_verifier_types_ResourceVotesByIdentity_destroy(drive_proof_verifier_types_ResourceVotesByIdentity *ffi); +%ignore drive_proof_verifier_types_Voters_ctor(std_collections_BTreeSet_drive_proof_verifier_types_Voter *o_0); +%ignore drive_proof_verifier_types_Voters_destroy(drive_proof_verifier_types_Voters *ffi); +%ignore drive_proof_verifier_types_Contenders_ctor(Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo *winner, std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument *contenders, uint32_t *abstain_vote_tally, uint32_t *lock_vote_tally); +%ignore drive_proof_verifier_types_Contenders_destroy(drive_proof_verifier_types_Contenders *ffi); +%ignore drive_proof_verifier_types_Voter_ctor(platform_value_types_identifier_Identifier *o_0); +%ignore drive_proof_verifier_types_Voter_destroy(drive_proof_verifier_types_Voter *ffi); +%ignore drive_proof_verifier_types_ContestedResource_ctor(platform_value_Value *o_0); +%ignore drive_proof_verifier_types_ContestedResource_destroy(drive_proof_verifier_types_ContestedResource *ffi); +%ignore drive_proof_verifier_types_ContestedResources_ctor(Vec_drive_proof_verifier_types_ContestedResource *o_0); +%ignore drive_proof_verifier_types_ContestedResources_destroy(drive_proof_verifier_types_ContestedResources *ffi); +%ignore drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor(Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll *o_0); +%ignore drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy(drive_proof_verifier_types_VotePollsGroupedByTimestamp *ffi); +%ignore platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone(std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey *public_keys); +%ignore platform_mobile_identity_Identifier_clone(platform_value_types_identifier_Identifier *identifier); +%ignore platform_mobile_identity_IdentityPublicKeyV0_clone(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 *identity_public_key); +%ignore platform_mobile_identity_IdentityPublicKey_clone(dpp_identity_identity_public_key_IdentityPublicKey *identity_public_key); +%ignore platform_mobile_identity_Identity_clone(dpp_identity_identity_Identity *identity); +%ignore platform_mobile_identity_IdentityV0_clone(dpp_identity_v0_IdentityV0 *identity); +%ignore platform_mobile_data_contracts_DataContractFFI_clone(platform_mobile_data_contracts_DataContractFFI *value); +%ignore platform_mobile_data_contracts_DataContractFFI_ctor(platform_value_types_identifier_Identifier *id, platform_value_types_identifier_Identifier *owner_id, Vec_String *doc_types, uint32_t version); +%ignore platform_mobile_data_contracts_DataContractFFI_destroy(platform_mobile_data_contracts_DataContractFFI *ffi); +%ignore platform_mobile_state_transition_StateTransitionInfo_ctor(uint8_t transition_type, char *name, Vec_u8 *owner_id, uint64_t revision, uint64_t identity_nonce); +%ignore platform_mobile_state_transition_StateTransitionInfo_destroy(platform_mobile_state_transition_StateTransitionInfo *ffi); +%ignore platform_mobile_put_InstantAssetLockProofFFI_ctor(Vec_u8 *instant_lock, Vec_u8 *transaction, uint32_t output_index); +%ignore platform_mobile_put_InstantAssetLockProofFFI_destroy(platform_mobile_put_InstantAssetLockProofFFI *ffi); +%ignore platform_mobile_put_AssetLockProofFFI_Instant_ctor(platform_mobile_put_InstantAssetLockProofFFI *o_o_0); +%ignore platform_mobile_put_AssetLockProofFFI_Chain_ctor(platform_mobile_put_ChainAssetLockProofFFI *o_o_0); +%ignore platform_mobile_put_AssetLockProofFFI_destroy(platform_mobile_put_AssetLockProofFFI *ffi); +%ignore platform_mobile_put_InstantAssetLockProofFFI_clone(platform_mobile_put_InstantAssetLockProofFFI *a); +%ignore platform_mobile_put_ChainAssetLockProofFFI_clone(platform_mobile_put_ChainAssetLockProofFFI *a); +%ignore platform_mobile_put_OutPointFFI_clone(OutPoint *a); +%ignore platform_mobile_put_ChainAssetLockProofFFI_ctor(uint32_t core_chain_locked_height, OutPoint *out_point); +%ignore platform_mobile_put_ChainAssetLockProofFFI_destroy(platform_mobile_put_ChainAssetLockProofFFI *ffi); +%ignore platform_mobile_put_OutPointFFI_ctor(Arr_u8_32 *txid, uint32_t vout); +%ignore platform_mobile_put_OutPointFFI_destroy(platform_mobile_put_OutPointFFI *ffi); +%ignore platform_mobile_fetch_document_StartPoint_StartAfter_ctor(Vec_u8 *o_o_0); +%ignore platform_mobile_fetch_document_StartPoint_StartAt_ctor(Vec_u8 *o_o_0); +%ignore platform_mobile_fetch_document_StartPoint_destroy(platform_mobile_fetch_document_StartPoint *ffi); +%ignore platform_mobile_clone_CoreBlockHeight_clone(dpp_prelude_CoreBlockHeight *height); +%ignore platform_mobile_clone_ContestedResources_clone(drive_proof_verifier_types_ContestedResources *o); +%ignore platform_mobile_clone_ContenderWithSerializedDocument_clone(dpp_voting_contender_structs_contender_ContenderWithSerializedDocument *o); +%ignore platform_mobile_clone_Value_clone(platform_value_Value *value); +%ignore platform_mobile_clone_Voter_clone(drive_proof_verifier_types_Voter *o); +%ignore platform_mobile_clone_ValueMap_clone(platform_value_value_map_ValueMap *value_map); +%ignore platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone(Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll *o); +%ignore platform_mobile_clone_BinaryData_clone(platform_value_types_binary_data_BinaryData *data); +%ignore platform_mobile_clone_Arr_u8_20_clone(Arr_u8_20 *slice); +%ignore platform_mobile_clone_Document_clone(dpp_document_Document *document); +%ignore platform_mobile_clone_Vec_u8_clone(Vec_u8 *vec); +%ignore platform_mobile_clone_Hash256_clone(platform_value_Hash256 *o); +%ignore platform_mobile_clone_VotePollsGroupedByTimestamp_clone(drive_proof_verifier_types_VotePollsGroupedByTimestamp *o); +%ignore platform_mobile_clone_Vec_Value_clone(Vec_platform_value_Value *value_vec); +%ignore platform_mobile_clone_Arr_u8_32_clone(Arr_u8_32 *slice); +%ignore platform_mobile_clone_Revision_clone(dpp_prelude_Revision *revision); +%ignore platform_mobile_clone_ContestedDocumentResourceVotePoll_clone(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll *o); +%ignore platform_mobile_clone_KeyID_clone(dpp_identity_identity_public_key_KeyID *id); +%ignore platform_mobile_clone_WhereOperator_clone(drive_query_conditions_WhereOperator *o); +%ignore platform_mobile_clone_Credits_clone(dpp_balances_credits_Credits *credits); +%ignore platform_mobile_clone_Arr_u8_36_clone(Arr_u8_36 *slice); +%ignore platform_mobile_clone_BlockHeight_clone(dpp_prelude_BlockHeight *height); +%ignore platform_mobile_clone_ContestedResource_clone(drive_proof_verifier_types_ContestedResource *o); +%ignore platform_mobile_clone_OrderClause_clone(drive_query_ordering_OrderClause *o); +%ignore platform_mobile_clone_prelude_TimestampMillis_clone(dpp_prelude_TimestampMillis *time); +%ignore platform_mobile_clone_ContenderWithSerializedDocumentV0_clone(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 *o); +%ignore platform_mobile_clone_ResourceVote_clone(dpp_voting_votes_resource_vote_ResourceVote *o); +%ignore platform_mobile_clone_ResourceVoteChoice_clone(dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice *o); +%ignore platform_mobile_clone_Vote_clone(dpp_voting_votes_Vote *o); +%ignore platform_mobile_clone_Contenders_clone(drive_proof_verifier_types_Contenders *o); +%ignore platform_mobile_clone_ContractBounds_clone(dpp_identity_identity_public_key_contract_bounds_ContractBounds *contract_bounds); +%ignore platform_mobile_clone_WhereClause_clone(drive_query_conditions_WhereClause *o); +%ignore platform_mobile_clone_ResourceVotesByIdentity_clone(drive_proof_verifier_types_ResourceVotesByIdentity *o); +%ignore platform_mobile_clone_TimestampMillis_clone(dpp_identity_identity_public_key_TimestampMillis *time); +%ignore platform_mobile_clone_VotePoll_clone(dpp_voting_vote_polls_VotePoll *o); +%ignore platform_mobile_clone_DocumentV0_clone(dpp_document_v0_DocumentV0 *document); +%ignore platform_mobile_clone_StateTransitionInfo_clone(platform_mobile_state_transition_StateTransitionInfo *info); +%ignore platform_mobile_clone_ResourceVoteV0_clone(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 *o); +%ignore platform_mobile_clone_Voters_clone(drive_proof_verifier_types_Voters *o); +%ignore platform_mobile_clone_IdentityPublicKeyV1_clone(dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 *public_key); +%ignore platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone(std_collections_Map_keys_String_values_platform_value_Value *map); +%ignore platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone(std_collections_BTreeSet_drive_proof_verifier_types_Voter *o); +%ignore drive_query_ordering_OrderClause_ctor(char *field, bool ascending); +%ignore drive_query_ordering_OrderClause_destroy(drive_query_ordering_OrderClause *ffi); %ignore drive_query_conditions_WhereOperator_Equal_ctor(); %ignore drive_query_conditions_WhereOperator_GreaterThan_ctor(); %ignore drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor(); @@ -12,20 +144,17 @@ %ignore drive_query_conditions_WhereOperator_In_ctor(); %ignore drive_query_conditions_WhereOperator_StartsWith_ctor(); %ignore drive_query_conditions_WhereOperator_destroy(drive_query_conditions_WhereOperator *ffi); -%ignore drive_query_ordering_OrderClause_ctor(char *field, bool ascending); -%ignore drive_query_ordering_OrderClause_destroy(drive_query_ordering_OrderClause *ffi); -%ignore dpp_identity_v0_IdentityV0_ctor(platform_value_types_identifier_Identifier *id, std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey *public_keys, uint64_t balance, dpp_prelude_Revision *revision); -%ignore dpp_identity_v0_IdentityV0_destroy(dpp_identity_v0_IdentityV0 *ffi); -%ignore dpp_identity_identity_Identity_V0_ctor(dpp_identity_v0_IdentityV0 *o_o_0); -%ignore dpp_identity_identity_Identity_destroy(dpp_identity_identity_Identity *ffi); +%ignore drive_query_conditions_WhereClause_ctor(char *field, drive_query_conditions_WhereOperator *operator_, platform_value_Value *value); +%ignore drive_query_conditions_WhereClause_destroy(drive_query_conditions_WhereClause *ffi); %ignore dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 *o_o_0); +%ignore dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor(dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 *o_o_0); %ignore dpp_identity_identity_public_key_IdentityPublicKey_destroy(dpp_identity_identity_public_key_IdentityPublicKey *ffi); -%ignore dpp_identity_identity_public_key_TimestampMillis_ctor(uint64_t o_0); -%ignore dpp_identity_identity_public_key_TimestampMillis_destroy(dpp_identity_identity_public_key_TimestampMillis *ffi); -%ignore dpp_identity_identity_public_key_KeyID_ctor(uint32_t o_0); -%ignore dpp_identity_identity_public_key_KeyID_destroy(dpp_identity_identity_public_key_KeyID *ffi); %ignore dpp_identity_identity_public_key_KeyCount_ctor(dpp_identity_identity_public_key_KeyID *o_0); %ignore dpp_identity_identity_public_key_KeyCount_destroy(dpp_identity_identity_public_key_KeyCount *ffi); +%ignore dpp_identity_identity_public_key_KeyID_ctor(uint32_t o_0); +%ignore dpp_identity_identity_public_key_KeyID_destroy(dpp_identity_identity_public_key_KeyID *ffi); +%ignore dpp_identity_identity_public_key_TimestampMillis_ctor(uint64_t o_0); +%ignore dpp_identity_identity_public_key_TimestampMillis_destroy(dpp_identity_identity_public_key_TimestampMillis *ffi); %ignore dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor(); %ignore dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor(); %ignore dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor(); @@ -33,15 +162,18 @@ %ignore dpp_identity_identity_public_key_security_level_SecurityLevel_destroy(dpp_identity_identity_public_key_security_level_SecurityLevel *ffi); %ignore dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor(dpp_identity_identity_public_key_KeyID *id, dpp_identity_identity_public_key_purpose_Purpose *purpose, dpp_identity_identity_public_key_security_level_SecurityLevel *security_level, dpp_identity_identity_public_key_contract_bounds_ContractBounds *contract_bounds, dpp_identity_identity_public_key_key_type_KeyType *key_type, bool read_only, platform_value_types_binary_data_BinaryData *data, dpp_identity_identity_public_key_TimestampMillis *disabled_at); %ignore dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 *ffi); +%ignore dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor(KeyID *id, Purpose *purpose, SecurityLevel *security_level, dpp_identity_identity_public_key_contract_bounds_ContractBounds *contract_bounds, KeyType *key_type, bool read_only, platform_value_types_binary_data_BinaryData *data, dpp_identity_identity_public_key_TimestampMillis *disabled_at, dpp_balances_credits_Credits *total_budget, dpp_identity_identity_public_key_TimestampMillis *expires_at); +%ignore dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy(dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 *ffi); +%ignore dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor(platform_value_types_identifier_Identifier *id); +%ignore dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor(platform_value_types_identifier_Identifier *id, char *document_type_name); +%ignore dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor(platform_value_types_identifier_Identifier *id); +%ignore dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy(dpp_identity_identity_public_key_contract_bounds_ContractBounds *ffi); %ignore dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor(); %ignore dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor(); %ignore dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor(); %ignore dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor(); %ignore dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor(); %ignore dpp_identity_identity_public_key_key_type_KeyType_destroy(dpp_identity_identity_public_key_key_type_KeyType *ffi); -%ignore dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor(platform_value_types_identifier_Identifier *id); -%ignore dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor(platform_value_types_identifier_Identifier *id, char *document_type_name); -%ignore dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy(dpp_identity_identity_public_key_contract_bounds_ContractBounds *ffi); %ignore dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor(); %ignore dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor(); %ignore dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor(); @@ -50,251 +182,127 @@ %ignore dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor(); %ignore dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor(); %ignore dpp_identity_identity_public_key_purpose_Purpose_destroy(dpp_identity_identity_public_key_purpose_Purpose *ffi); -%ignore dpp_document_Document_V0_ctor(dpp_document_v0_DocumentV0 *o_o_0); -%ignore dpp_document_Document_destroy(dpp_document_Document *ffi); -%ignore dpp_document_v0_DocumentV0_ctor(platform_value_types_identifier_Identifier *id, platform_value_types_identifier_Identifier *owner_id, std_collections_Map_keys_String_values_platform_value_Value *properties, dpp_prelude_Revision *revision, dpp_identity_identity_public_key_TimestampMillis *created_at, dpp_identity_identity_public_key_TimestampMillis *updated_at, dpp_identity_identity_public_key_TimestampMillis *transferred_at, dpp_prelude_BlockHeight *created_at_block_height, dpp_prelude_BlockHeight *updated_at_block_height, dpp_prelude_BlockHeight *transferred_at_block_height, dpp_prelude_CoreBlockHeight *created_at_core_block_height, dpp_prelude_CoreBlockHeight *updated_at_core_block_height, dpp_prelude_CoreBlockHeight *transferred_at_core_block_height, platform_value_types_identifier_Identifier *creator_id); -%ignore dpp_document_v0_DocumentV0_destroy(dpp_document_v0_DocumentV0 *ffi); -%ignore dpp_prelude_BlockHeight_ctor(uint64_t o_0); -%ignore dpp_prelude_BlockHeight_destroy(dpp_prelude_BlockHeight *ffi); -%ignore dpp_prelude_Revision_ctor(uint64_t o_0); -%ignore dpp_prelude_Revision_destroy(dpp_prelude_Revision *ffi); -%ignore dpp_prelude_TimestampMillis_ctor(uint64_t o_0); -%ignore dpp_prelude_TimestampMillis_destroy(dpp_prelude_TimestampMillis *ffi); -%ignore dpp_prelude_CoreBlockHeight_ctor(uint32_t o_0); -%ignore dpp_prelude_CoreBlockHeight_destroy(dpp_prelude_CoreBlockHeight *ffi); -%ignore dpp_block_epoch_Epoch_ctor(dpp_block_epoch_EpochIndex *index, Arr_u8_2 *key); -%ignore dpp_block_epoch_Epoch_destroy(dpp_block_epoch_Epoch *ffi); -%ignore dpp_block_epoch_EpochIndex_ctor(uint16_t o_0); -%ignore dpp_block_epoch_EpochIndex_destroy(dpp_block_epoch_EpochIndex *ffi); -%ignore dpp_block_block_info_BlockInfo_ctor(dpp_prelude_TimestampMillis *time_ms, dpp_prelude_BlockHeight *height, dpp_prelude_CoreBlockHeight *core_height, dpp_block_epoch_Epoch *epoch); -%ignore dpp_block_block_info_BlockInfo_destroy(dpp_block_block_info_BlockInfo *ffi); -%ignore dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 *o_o_0); -%ignore dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy(dpp_voting_contender_structs_contender_ContenderWithSerializedDocument *ffi); -%ignore dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor(platform_value_types_identifier_Identifier *identity_id, Vec_u8 *serialized_document, uint32_t *vote_tally); -%ignore dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 *ffi); -%ignore dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll *o_o_0); -%ignore dpp_voting_vote_polls_VotePoll_destroy(dpp_voting_vote_polls_VotePoll *ffi); -%ignore dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor(platform_value_types_identifier_Identifier *contract_id, char *document_type_name, char *index_name, Vec_platform_value_Value *index_values); -%ignore dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll *ffi); +%ignore dpp_identity_identity_Identity_V0_ctor(dpp_identity_v0_IdentityV0 *o_o_0); +%ignore dpp_identity_identity_Identity_destroy(dpp_identity_identity_Identity *ffi); +%ignore dpp_identity_v0_IdentityV0_ctor(platform_value_types_identifier_Identifier *id, std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey *public_keys, uint64_t balance, dpp_prelude_Revision *revision); +%ignore dpp_identity_v0_IdentityV0_destroy(dpp_identity_v0_IdentityV0 *ffi); +%ignore dpp_balances_credits_Credits_ctor(uint64_t o_0); +%ignore dpp_balances_credits_Credits_destroy(dpp_balances_credits_Credits *ffi); %ignore dpp_voting_votes_Vote_ResourceVote_ctor(dpp_voting_votes_resource_vote_ResourceVote *o_o_0); %ignore dpp_voting_votes_Vote_destroy(dpp_voting_votes_Vote *ffi); %ignore dpp_voting_votes_resource_vote_ResourceVote_V0_ctor(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 *o_o_0); %ignore dpp_voting_votes_resource_vote_ResourceVote_destroy(dpp_voting_votes_resource_vote_ResourceVote *ffi); %ignore dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor(dpp_voting_vote_polls_VotePoll *vote_poll, dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice *resource_vote_choice); %ignore dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 *ffi); -%ignore dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor(); -%ignore dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor(platform_value_types_identifier_Identifier *o_o_0); -%ignore dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor(); -%ignore dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy(dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo *ffi); +%ignore dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 *o_o_0); +%ignore dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy(dpp_voting_contender_structs_contender_ContenderWithSerializedDocument *ffi); +%ignore dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor(platform_value_types_identifier_Identifier *identity_id, Vec_u8 *serialized_document, uint32_t *vote_tally); +%ignore dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 *ffi); %ignore dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor(platform_value_types_identifier_Identifier *o_o_0); %ignore dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor(); %ignore dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor(); %ignore dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy(dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice *ffi); -%ignore drive_proof_verifier_types_Voter_ctor(platform_value_types_identifier_Identifier *o_0); -%ignore drive_proof_verifier_types_Voter_destroy(drive_proof_verifier_types_Voter *ffi); -%ignore drive_proof_verifier_types_Voters_ctor(std_collections_BTreeSet_drive_proof_verifier_types_Voter *o_0); -%ignore drive_proof_verifier_types_Voters_destroy(drive_proof_verifier_types_Voters *ffi); -%ignore drive_proof_verifier_types_Contenders_ctor(Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo *winner, std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument *contenders, uint32_t *abstain_vote_tally, uint32_t *lock_vote_tally); -%ignore drive_proof_verifier_types_Contenders_destroy(drive_proof_verifier_types_Contenders *ffi); -%ignore drive_proof_verifier_types_ContestedResource_ctor(platform_value_Value *o_0); -%ignore drive_proof_verifier_types_ContestedResource_destroy(drive_proof_verifier_types_ContestedResource *ffi); -%ignore drive_proof_verifier_types_ContestedResources_ctor(Vec_drive_proof_verifier_types_ContestedResource *o_0); -%ignore drive_proof_verifier_types_ContestedResources_destroy(drive_proof_verifier_types_ContestedResources *ffi); -%ignore drive_proof_verifier_types_ResourceVotesByIdentity_ctor(std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote *o_0); -%ignore drive_proof_verifier_types_ResourceVotesByIdentity_destroy(drive_proof_verifier_types_ResourceVotesByIdentity *ffi); -%ignore drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor(Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll *o_0); -%ignore drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy(drive_proof_verifier_types_VotePollsGroupedByTimestamp *ffi); -%ignore dash_sdk_platform_types_identity_PublicKeyHash_ctor(Arr_u8_20 *o_0); -%ignore dash_sdk_platform_types_identity_PublicKeyHash_destroy(dash_sdk_platform_types_identity_PublicKeyHash *ffi); -%ignore platform_mobile_data_contracts_DataContractFFI_ctor(platform_value_types_identifier_Identifier *id, platform_value_types_identifier_Identifier *owner_id, Vec_String *doc_types, uint32_t version); -%ignore platform_mobile_data_contracts_DataContractFFI_destroy(platform_mobile_data_contracts_DataContractFFI *ffi); -%ignore platform_mobile_data_contracts_DataContractFFI_clone(platform_mobile_data_contracts_DataContractFFI *value); -%ignore platform_mobile_state_transition_StateTransitionInfo_ctor(uint8_t transition_type, char *name, Vec_u8 *owner_id, uint64_t revision, uint64_t identity_nonce); -%ignore platform_mobile_state_transition_StateTransitionInfo_destroy(platform_mobile_state_transition_StateTransitionInfo *ffi); -%ignore platform_mobile_put_OutPointFFI_ctor(Arr_u8_32 *txid, uint32_t vout); -%ignore platform_mobile_put_OutPointFFI_destroy(platform_mobile_put_OutPointFFI *ffi); -%ignore platform_mobile_put_AssetLockProofFFI_Instant_ctor(platform_mobile_put_InstantAssetLockProofFFI *o_o_0); -%ignore platform_mobile_put_AssetLockProofFFI_Chain_ctor(platform_mobile_put_ChainAssetLockProofFFI *o_o_0); -%ignore platform_mobile_put_AssetLockProofFFI_destroy(platform_mobile_put_AssetLockProofFFI *ffi); -%ignore platform_mobile_put_ChainAssetLockProofFFI_clone(platform_mobile_put_ChainAssetLockProofFFI *a); -%ignore platform_mobile_put_InstantAssetLockProofFFI_ctor(Vec_u8 *instant_lock, Vec_u8 *transaction, uint32_t output_index); -%ignore platform_mobile_put_InstantAssetLockProofFFI_destroy(platform_mobile_put_InstantAssetLockProofFFI *ffi); -%ignore platform_mobile_put_ChainAssetLockProofFFI_ctor(uint32_t core_chain_locked_height, OutPoint *out_point); -%ignore platform_mobile_put_ChainAssetLockProofFFI_destroy(platform_mobile_put_ChainAssetLockProofFFI *ffi); -%ignore platform_mobile_put_InstantAssetLockProofFFI_clone(platform_mobile_put_InstantAssetLockProofFFI *a); -%ignore platform_mobile_put_OutPointFFI_clone(OutPoint *a); -%ignore platform_mobile_fetch_document_StartPoint_StartAfter_ctor(Vec_u8 *o_o_0); -%ignore platform_mobile_fetch_document_StartPoint_StartAt_ctor(Vec_u8 *o_o_0); -%ignore platform_mobile_fetch_document_StartPoint_destroy(platform_mobile_fetch_document_StartPoint *ffi); -%ignore platform_mobile_identity_IdentityPublicKeyV0_clone(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 *identity_public_key); -%ignore platform_mobile_identity_IdentityPublicKey_clone(dpp_identity_identity_public_key_IdentityPublicKey *identity_public_key); -%ignore platform_mobile_identity_Identity_clone(dpp_identity_identity_Identity *identity); -%ignore platform_mobile_identity_IdentityV0_clone(dpp_identity_v0_IdentityV0 *identity); -%ignore platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone(std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey *public_keys); -%ignore platform_mobile_identity_Identifier_clone(platform_value_types_identifier_Identifier *identifier); -%ignore platform_mobile_clone_DocumentV0_clone(dpp_document_v0_DocumentV0 *document); -%ignore platform_mobile_clone_Arr_u8_32_clone(Arr_u8_32 *slice); -%ignore platform_mobile_clone_Voter_clone(drive_proof_verifier_types_Voter *o); -%ignore platform_mobile_clone_ResourceVoteChoice_clone(dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice *o); -%ignore platform_mobile_clone_ContenderWithSerializedDocumentV0_clone(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 *o); -%ignore platform_mobile_clone_Document_clone(dpp_document_Document *document); -%ignore platform_mobile_clone_Revision_clone(dpp_prelude_Revision *revision); -%ignore platform_mobile_clone_ContestedResources_clone(drive_proof_verifier_types_ContestedResources *o); -%ignore platform_mobile_clone_CoreBlockHeight_clone(dpp_prelude_CoreBlockHeight *height); -%ignore platform_mobile_clone_Arr_u8_20_clone(Arr_u8_20 *slice); -%ignore platform_mobile_clone_WhereClause_clone(drive_query_conditions_WhereClause *o); -%ignore platform_mobile_clone_prelude_TimestampMillis_clone(dpp_prelude_TimestampMillis *time); -%ignore platform_mobile_clone_TimestampMillis_clone(dpp_identity_identity_public_key_TimestampMillis *time); -%ignore platform_mobile_clone_Value_clone(platform_value_Value *value); -%ignore platform_mobile_clone_WhereOperator_clone(drive_query_conditions_WhereOperator *o); -%ignore platform_mobile_clone_Voters_clone(drive_proof_verifier_types_Voters *o); -%ignore platform_mobile_clone_Vec_Value_clone(Vec_platform_value_Value *value_vec); -%ignore platform_mobile_clone_ContenderWithSerializedDocument_clone(dpp_voting_contender_structs_contender_ContenderWithSerializedDocument *o); -%ignore platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone(std_collections_BTreeSet_drive_proof_verifier_types_Voter *o); -%ignore platform_mobile_clone_OrderClause_clone(drive_query_ordering_OrderClause *o); -%ignore platform_mobile_clone_Vec_u8_clone(Vec_u8 *vec); -%ignore platform_mobile_clone_VotePollsGroupedByTimestamp_clone(drive_proof_verifier_types_VotePollsGroupedByTimestamp *o); -%ignore platform_mobile_clone_ResourceVote_clone(dpp_voting_votes_resource_vote_ResourceVote *o); -%ignore platform_mobile_clone_ContestedDocumentResourceVotePoll_clone(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll *o); -%ignore platform_mobile_clone_Contenders_clone(drive_proof_verifier_types_Contenders *o); -%ignore platform_mobile_clone_BlockHeight_clone(dpp_prelude_BlockHeight *height); -%ignore platform_mobile_clone_ValueMap_clone(platform_value_value_map_ValueMap *value_map); -%ignore platform_mobile_clone_VotePoll_clone(dpp_voting_vote_polls_VotePoll *o); -%ignore platform_mobile_clone_Vote_clone(dpp_voting_votes_Vote *o); -%ignore platform_mobile_clone_ResourceVotesByIdentity_clone(drive_proof_verifier_types_ResourceVotesByIdentity *o); -%ignore platform_mobile_clone_Arr_u8_36_clone(Arr_u8_36 *slice); -%ignore platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone(std_collections_Map_keys_String_values_platform_value_Value *map); -%ignore platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone(Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll *o); -%ignore platform_mobile_clone_ResourceVoteV0_clone(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 *o); -%ignore platform_mobile_clone_KeyID_clone(dpp_identity_identity_public_key_KeyID *id); -%ignore platform_mobile_clone_Hash256_clone(platform_value_Hash256 *o); -%ignore platform_mobile_clone_ContestedResource_clone(drive_proof_verifier_types_ContestedResource *o); -%ignore platform_mobile_clone_StateTransitionInfo_clone(platform_mobile_state_transition_StateTransitionInfo *info); -%ignore platform_value_Hash256_ctor(Arr_u8_32 *o_0); -%ignore platform_value_Hash256_destroy(platform_value_Hash256 *ffi); -%ignore platform_value_Value_U128_ctor(uint8_t); -%ignore platform_value_Value_I128_ctor(uint8_t); -%ignore platform_value_Value_U64_ctor(uint64_t o_o_0); -%ignore platform_value_Value_I64_ctor(int64_t o_o_0); -%ignore platform_value_Value_U32_ctor(uint32_t o_o_0); -%ignore platform_value_Value_I32_ctor(int32_t o_o_0); -%ignore platform_value_Value_U16_ctor(uint16_t o_o_0); -%ignore platform_value_Value_I16_ctor(int16_t o_o_0); -%ignore platform_value_Value_U8_ctor(uint8_t o_o_0); -%ignore platform_value_Value_I8_ctor(int8_t o_o_0); -%ignore platform_value_Value_Bytes_ctor(Vec_u8 *o_o_0); -%ignore platform_value_Value_Bytes20_ctor(Arr_u8_20 *o_o_0); -%ignore platform_value_Value_Bytes32_ctor(Arr_u8_32 *o_o_0); -%ignore platform_value_Value_Bytes36_ctor(Arr_u8_36 *o_o_0); -%ignore platform_value_Value_EnumU8_ctor(Vec_u8 *o_o_0); -%ignore platform_value_Value_EnumString_ctor(Vec_String *o_o_0); -%ignore platform_value_Value_Identifier_ctor(platform_value_Hash256 *o_o_0); -%ignore platform_value_Value_Float_ctor(double o_o_0); -%ignore platform_value_Value_Text_ctor(char *o_o_0); -%ignore platform_value_Value_Bool_ctor(bool o_o_0); -%ignore platform_value_Value_Null_ctor(); -%ignore platform_value_Value_Array_ctor(Vec_platform_value_Value *o_o_0); -%ignore platform_value_Value_Map_ctor(platform_value_value_map_ValueMap *o_o_0); -%ignore platform_value_Value_destroy(platform_value_Value *ffi); -%ignore platform_value_types_binary_data_BinaryData_ctor(Vec_u8 *o_0); -%ignore platform_value_types_binary_data_BinaryData_destroy(platform_value_types_binary_data_BinaryData *ffi); -%ignore platform_value_types_identifier_IdentifierBytes32_ctor(Arr_u8_32 *o_0); -%ignore platform_value_types_identifier_IdentifierBytes32_destroy(platform_value_types_identifier_IdentifierBytes32 *ffi); -%ignore platform_value_types_identifier_Identifier_ctor(platform_value_types_identifier_IdentifierBytes32 *o_0); -%ignore platform_value_types_identifier_Identifier_destroy(platform_value_types_identifier_Identifier *ffi); -%ignore platform_value_error_Error_Unsupported_ctor(char *o_o_0); -%ignore platform_value_error_Error_StructureError_ctor(char *o_o_0); -%ignore platform_value_error_Error_PathError_ctor(char *o_o_0); -%ignore platform_value_error_Error_IntegerSizeError_ctor(); -%ignore platform_value_error_Error_IntegerParsingError_ctor(); -%ignore platform_value_error_Error_StringDecodingError_ctor(char *o_o_0); -%ignore platform_value_error_Error_KeyMustBeAString_ctor(); -%ignore platform_value_error_Error_ByteLengthNot20BytesError_ctor(char *o_o_0); -%ignore platform_value_error_Error_ByteLengthNot32BytesError_ctor(char *o_o_0); -%ignore platform_value_error_Error_ByteLengthNot36BytesError_ctor(char *o_o_0); -%ignore platform_value_error_Error_SerdeSerializationError_ctor(char *o_o_0); -%ignore platform_value_error_Error_SerdeDeserializationError_ctor(char *o_o_0); -%ignore platform_value_error_Error_CborSerializationError_ctor(char *o_o_0); -%ignore platform_value_error_Error_destroy(platform_value_error_Error *ffi); -%ignore platform_value_value_map_ValueMap_ctor(Vec_Tuple_platform_value_Value_platform_value_Value *o_0); -%ignore platform_value_value_map_ValueMap_destroy(platform_value_value_map_ValueMap *ffi); -%ignore Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor(dpp_voting_votes_Vote *ok, char *error); -%ignore Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy(Result_ok_Option_dpp_voting_votes_Vote_err_String *ffi); +%ignore dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor(); +%ignore dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor(platform_value_types_identifier_Identifier *o_o_0); +%ignore dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor(); +%ignore dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy(dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo *ffi); +%ignore dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll *o_o_0); +%ignore dpp_voting_vote_polls_VotePoll_destroy(dpp_voting_vote_polls_VotePoll *ffi); +%ignore dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor(platform_value_types_identifier_Identifier *contract_id, char *document_type_name, char *index_name, Vec_platform_value_Value *index_values); +%ignore dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll *ffi); +%ignore dpp_block_epoch_EpochIndex_ctor(uint16_t o_0); +%ignore dpp_block_epoch_EpochIndex_destroy(dpp_block_epoch_EpochIndex *ffi); +%ignore dpp_block_epoch_Epoch_ctor(dpp_block_epoch_EpochIndex *index, Arr_u8_2 *key); +%ignore dpp_block_epoch_Epoch_destroy(dpp_block_epoch_Epoch *ffi); +%ignore dpp_block_block_info_BlockInfo_ctor(dpp_prelude_TimestampMillis *time_ms, dpp_prelude_BlockHeight *height, dpp_prelude_CoreBlockHeight *core_height, dpp_block_epoch_Epoch *epoch); +%ignore dpp_block_block_info_BlockInfo_destroy(dpp_block_block_info_BlockInfo *ffi); +%ignore dpp_prelude_Revision_ctor(uint64_t o_0); +%ignore dpp_prelude_Revision_destroy(dpp_prelude_Revision *ffi); +%ignore dpp_prelude_TimestampMillis_ctor(uint64_t o_0); +%ignore dpp_prelude_TimestampMillis_destroy(dpp_prelude_TimestampMillis *ffi); +%ignore dpp_prelude_BlockHeight_ctor(uint64_t o_0); +%ignore dpp_prelude_BlockHeight_destroy(dpp_prelude_BlockHeight *ffi); +%ignore dpp_prelude_CoreBlockHeight_ctor(uint32_t o_0); +%ignore dpp_prelude_CoreBlockHeight_destroy(dpp_prelude_CoreBlockHeight *ffi); +%ignore dpp_document_Document_V0_ctor(dpp_document_v0_DocumentV0 *o_o_0); +%ignore dpp_document_Document_destroy(dpp_document_Document *ffi); +%ignore dpp_document_v0_DocumentV0_ctor(platform_value_types_identifier_Identifier *id, platform_value_types_identifier_Identifier *owner_id, std_collections_Map_keys_String_values_platform_value_Value *properties, dpp_prelude_Revision *revision, dpp_identity_identity_public_key_TimestampMillis *created_at, dpp_identity_identity_public_key_TimestampMillis *updated_at, dpp_identity_identity_public_key_TimestampMillis *transferred_at, dpp_prelude_BlockHeight *created_at_block_height, dpp_prelude_BlockHeight *updated_at_block_height, dpp_prelude_BlockHeight *transferred_at_block_height, dpp_prelude_CoreBlockHeight *created_at_core_block_height, dpp_prelude_CoreBlockHeight *updated_at_core_block_height, dpp_prelude_CoreBlockHeight *transferred_at_core_block_height, platform_value_types_identifier_Identifier *creator_id, uint32_t *contract_version); +%ignore dpp_document_v0_DocumentV0_destroy(dpp_document_v0_DocumentV0 *ffi); +%ignore Vec_drive_query_ordering_OrderClause_ctor(uintptr_t count, drive_query_ordering_OrderClause **values); +%ignore Vec_drive_query_ordering_OrderClause_destroy(Vec_drive_query_ordering_OrderClause *ffi); +%ignore Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor(platform_mobile_state_transition_StateTransitionInfo *ok, char *error); +%ignore Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy(Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String *ffi); +%ignore Vec_dpp_document_Document_ctor(uintptr_t count, dpp_document_Document **values); +%ignore Vec_dpp_document_Document_destroy(Vec_dpp_document_Document *ffi); +%ignore Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor(Vec_dpp_identity_identity_public_key_IdentityPublicKey *ok, char *error); +%ignore Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy(Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String *ffi); +%ignore Arr_u8_32_ctor(uintptr_t count, uint8_t *values); +%ignore Arr_u8_32_destroy(Arr_u8_32 *ffi); %ignore Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor(drive_proof_verifier_types_ResourceVotesByIdentity *ok, char *error); %ignore Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy(Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String *ffi); -%ignore Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor(uintptr_t count, dpp_identity_identity_public_key_IdentityPublicKey **values); -%ignore Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy(Vec_dpp_identity_identity_public_key_IdentityPublicKey *ffi); -%ignore Result_ok_u64_err_String_ctor(uint64_t *ok, char *error); -%ignore Result_ok_u64_err_String_destroy(Result_ok_u64_err_String *ffi); +%ignore Vec_platform_value_Value_ctor(uintptr_t count, platform_value_Value **values); +%ignore Vec_platform_value_Value_destroy(Vec_platform_value_Value *ffi); +%ignore Arr_u8_2_ctor(uintptr_t count, uint8_t *values); +%ignore Arr_u8_2_destroy(Arr_u8_2 *ffi); +%ignore Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor(uintptr_t count, Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll **values); +%ignore Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy(Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll *ffi); %ignore Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor(dpp_prelude_TimestampMillis *o_0, Vec_dpp_voting_vote_polls_VotePoll *o_1); %ignore Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy(Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll *ffi); -%ignore Result_ok_dpp_document_Document_err_String_ctor(dpp_document_Document *ok, char *error); -%ignore Result_ok_dpp_document_Document_err_String_destroy(Result_ok_dpp_document_Document_err_String *ffi); -%ignore Vec_dpp_document_Document_ctor(uintptr_t count, dpp_document_Document **values); -%ignore Vec_dpp_document_Document_destroy(Vec_dpp_document_Document *ffi); -%ignore Vec_drive_query_conditions_WhereClause_ctor(uintptr_t count, drive_query_conditions_WhereClause **values); -%ignore Vec_drive_query_conditions_WhereClause_destroy(Vec_drive_query_conditions_WhereClause *ffi); -%ignore Vec_drive_query_ordering_OrderClause_ctor(uintptr_t count, drive_query_ordering_OrderClause **values); -%ignore Vec_drive_query_ordering_OrderClause_destroy(Vec_drive_query_ordering_OrderClause *ffi); -%ignore std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor(uintptr_t count, platform_value_types_identifier_Identifier **keys, dpp_voting_contender_structs_contender_ContenderWithSerializedDocument **values); -%ignore std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy(std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument *ffi); -%ignore Vec_u8_ctor(uintptr_t count, uint8_t *values); -%ignore Vec_u8_destroy(Vec_u8 *ffi); -%ignore Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor(platform_mobile_data_contracts_DataContractFFI *ok, char *error); -%ignore Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy(Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String *ffi); -%ignore Vec_dpp_voting_vote_polls_VotePoll_ctor(uintptr_t count, dpp_voting_vote_polls_VotePoll **values); -%ignore Vec_dpp_voting_vote_polls_VotePoll_destroy(Vec_dpp_voting_vote_polls_VotePoll *ffi); -%ignore Vec_drive_proof_verifier_types_ContestedResource_ctor(uintptr_t count, drive_proof_verifier_types_ContestedResource **values); -%ignore Vec_drive_proof_verifier_types_ContestedResource_destroy(Vec_drive_proof_verifier_types_ContestedResource *ffi); +%ignore Result_ok_u64_err_String_ctor(uint64_t *ok, char *error); +%ignore Result_ok_u64_err_String_destroy(Result_ok_u64_err_String *ffi); +%ignore Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor(dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo *o_0, dpp_block_block_info_BlockInfo *o_1); +%ignore Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy(Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo *ffi); +%ignore Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor(dpp_voting_votes_Vote *ok, char *error); +%ignore Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy(Result_ok_Option_dpp_voting_votes_Vote_err_String *ffi); +%ignore Tuple_platform_value_Value_platform_value_Value_ctor(platform_value_Value *o_0, platform_value_Value *o_1); +%ignore Tuple_platform_value_Value_platform_value_Value_destroy(Tuple_platform_value_Value_platform_value_Value *ffi); +%ignore std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor(uintptr_t count, dpp_identity_identity_public_key_KeyID **keys, dpp_identity_identity_public_key_IdentityPublicKey **values); +%ignore std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy(std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey *ffi); %ignore Vec_Tuple_platform_value_Value_platform_value_Value_ctor(uintptr_t count, Tuple_platform_value_Value_platform_value_Value **values); %ignore Vec_Tuple_platform_value_Value_platform_value_Value_destroy(Vec_Tuple_platform_value_Value_platform_value_Value *ffi); -%ignore Result_ok_dpp_voting_votes_Vote_err_String_ctor(dpp_voting_votes_Vote *ok, char *error); -%ignore Result_ok_dpp_voting_votes_Vote_err_String_destroy(Result_ok_dpp_voting_votes_Vote_err_String *ffi); +%ignore Vec_dpp_identity_identity_public_key_KeyID_ctor(uintptr_t count, dpp_identity_identity_public_key_KeyID **values); +%ignore Vec_dpp_identity_identity_public_key_KeyID_destroy(Vec_dpp_identity_identity_public_key_KeyID *ffi); +%ignore Result_ok_Vec_dpp_document_Document_err_String_ctor(Vec_dpp_document_Document *ok, char *error); +%ignore Result_ok_Vec_dpp_document_Document_err_String_destroy(Result_ok_Vec_dpp_document_Document_err_String *ffi); +%ignore Vec_dpp_voting_vote_polls_VotePoll_ctor(uintptr_t count, dpp_voting_vote_polls_VotePoll **values); +%ignore Vec_dpp_voting_vote_polls_VotePoll_destroy(Vec_dpp_voting_vote_polls_VotePoll *ffi); %ignore Result_ok_dpp_identity_identity_Identity_err_String_ctor(dpp_identity_identity_Identity *ok, char *error); %ignore Result_ok_dpp_identity_identity_Identity_err_String_destroy(Result_ok_dpp_identity_identity_Identity_err_String *ffi); -%ignore Arr_u8_36_ctor(uintptr_t count, uint8_t *values); -%ignore Arr_u8_36_destroy(Arr_u8_36 *ffi); -%ignore std_collections_Map_keys_String_values_platform_value_Value_ctor(uintptr_t count, char **keys, platform_value_Value **values); -%ignore std_collections_Map_keys_String_values_platform_value_Value_destroy(std_collections_Map_keys_String_values_platform_value_Value *ffi); -%ignore Vec_platform_value_Value_ctor(uintptr_t count, platform_value_Value **values); -%ignore Vec_platform_value_Value_destroy(Vec_platform_value_Value *ffi); -%ignore Arr_u8_32_ctor(uintptr_t count, uint8_t *values); -%ignore Arr_u8_32_destroy(Arr_u8_32 *ffi); -%ignore std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor(uintptr_t count, dpp_identity_identity_public_key_KeyID **keys, dpp_identity_identity_public_key_IdentityPublicKey **values); -%ignore std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy(std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey *ffi); -%ignore Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor(platform_mobile_state_transition_StateTransitionInfo *ok, char *error); -%ignore Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy(Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String *ffi); -%ignore Arr_u8_2_ctor(uintptr_t count, uint8_t *values); -%ignore Arr_u8_2_destroy(Arr_u8_2 *ffi); -%ignore platform_mobile_provider_Cache_platform_value_types_identifier_Identifier_dpp_data_contract_DataContract_ctor(platform_value_types_identifier_Identifier *obj); -%ignore platform_mobile_provider_Cache_platform_value_types_identifier_Identifier_dpp_data_contract_DataContract_destroy(platform_mobile_provider_Cache_platform_value_types_identifier_Identifier_dpp_data_contract_DataContract *ffi); -%ignore Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor(drive_proof_verifier_types_Contenders *ok, char *error); -%ignore Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy(Result_ok_drive_proof_verifier_types_Contenders_err_String *ffi); +%ignore Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor(dpp_identity_identity_Identity *ok, char *error); +%ignore Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy(Result_ok_Option_dpp_identity_identity_Identity_err_String *ffi); +%ignore Result_ok_dpp_document_Document_err_String_ctor(dpp_document_Document *ok, char *error); +%ignore Result_ok_dpp_document_Document_err_String_destroy(Result_ok_dpp_document_Document_err_String *ffi); +%ignore Arr_u8_20_ctor(uintptr_t count, uint8_t *values); +%ignore Arr_u8_20_destroy(Arr_u8_20 *ffi); %ignore Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor(drive_proof_verifier_types_ContestedResources *ok, char *error); %ignore Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy(Result_ok_drive_proof_verifier_types_ContestedResources_err_String *ffi); +%ignore Result_ok_Vec_u8_err_String_ctor(Vec_u8 *ok, char *error); +%ignore Result_ok_Vec_u8_err_String_destroy(Result_ok_Vec_u8_err_String *ffi); +%ignore Result_ok_dpp_voting_votes_Vote_err_String_ctor(dpp_voting_votes_Vote *ok, char *error); +%ignore Result_ok_dpp_voting_votes_Vote_err_String_destroy(Result_ok_dpp_voting_votes_Vote_err_String *ffi); %ignore Vec_String_ctor(uintptr_t count, char **values); %ignore Vec_String_destroy(Vec_String *ffi); +%ignore Arr_u8_36_ctor(uintptr_t count, uint8_t *values); +%ignore Arr_u8_36_destroy(Arr_u8_36 *ffi); %ignore Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor(drive_proof_verifier_types_VotePollsGroupedByTimestamp *ok, char *error); %ignore Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy(Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String *ffi); -%ignore Result_ok_Vec_dpp_document_Document_err_String_ctor(Vec_dpp_document_Document *ok, char *error); -%ignore Result_ok_Vec_dpp_document_Document_err_String_destroy(Result_ok_Vec_dpp_document_Document_err_String *ffi); -%ignore Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor(uintptr_t count, Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll **values); -%ignore Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy(Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll *ffi); -%ignore Result_ok_Vec_u8_err_String_ctor(Vec_u8 *ok, char *error); -%ignore Result_ok_Vec_u8_err_String_destroy(Result_ok_Vec_u8_err_String *ffi); -%ignore Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor(dpp_identity_identity_Identity *ok, char *error); -%ignore Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy(Result_ok_Option_dpp_identity_identity_Identity_err_String *ffi); -%ignore std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor(uintptr_t count, platform_value_types_identifier_Identifier **keys, dpp_voting_votes_resource_vote_ResourceVote **values); -%ignore std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy(std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote *ffi); -%ignore Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor(dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo *o_0, dpp_block_block_info_BlockInfo *o_1); -%ignore Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy(Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo *ffi); -%ignore Vec_dpp_identity_identity_public_key_KeyID_ctor(uintptr_t count, dpp_identity_identity_public_key_KeyID **values); -%ignore Vec_dpp_identity_identity_public_key_KeyID_destroy(Vec_dpp_identity_identity_public_key_KeyID *ffi); -%ignore Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor(Vec_dpp_identity_identity_public_key_IdentityPublicKey *ok, char *error); -%ignore Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy(Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String *ffi); -%ignore Tuple_platform_value_Value_platform_value_Value_ctor(platform_value_Value *o_0, platform_value_Value *o_1); -%ignore Tuple_platform_value_Value_platform_value_Value_destroy(Tuple_platform_value_Value_platform_value_Value *ffi); +%ignore Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor(uintptr_t count, dpp_identity_identity_public_key_IdentityPublicKey **values); +%ignore Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy(Vec_dpp_identity_identity_public_key_IdentityPublicKey *ffi); +%ignore Vec_u8_ctor(uintptr_t count, uint8_t *values); +%ignore Vec_u8_destroy(Vec_u8 *ffi); +%ignore std_collections_Map_keys_String_values_platform_value_Value_ctor(uintptr_t count, char **keys, platform_value_Value **values); +%ignore std_collections_Map_keys_String_values_platform_value_Value_destroy(std_collections_Map_keys_String_values_platform_value_Value *ffi); +%ignore Vec_drive_proof_verifier_types_ContestedResource_ctor(uintptr_t count, drive_proof_verifier_types_ContestedResource **values); +%ignore Vec_drive_proof_verifier_types_ContestedResource_destroy(Vec_drive_proof_verifier_types_ContestedResource *ffi); +%ignore Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor(drive_proof_verifier_types_Contenders *ok, char *error); +%ignore Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy(Result_ok_drive_proof_verifier_types_Contenders_err_String *ffi); +%ignore Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor(platform_mobile_data_contracts_DataContractFFI *ok, char *error); +%ignore Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy(Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String *ffi); %ignore std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor(uintptr_t count, drive_proof_verifier_types_Voter **values); %ignore std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy(std_collections_BTreeSet_drive_proof_verifier_types_Voter *ffi); -%ignore Arr_u8_20_ctor(uintptr_t count, uint8_t *values); -%ignore Arr_u8_20_destroy(Arr_u8_20 *ffi); +%ignore std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor(uintptr_t count, platform_value_types_identifier_Identifier **keys, dpp_voting_contender_structs_contender_ContenderWithSerializedDocument **values); +%ignore std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy(std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument *ffi); +%ignore std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor(uintptr_t count, platform_value_types_identifier_Identifier **keys, dpp_voting_votes_resource_vote_ResourceVote **values); +%ignore std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy(std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote *ffi); +%ignore Vec_drive_query_conditions_WhereClause_ctor(uintptr_t count, drive_query_conditions_WhereClause **values); +%ignore Vec_drive_query_conditions_WhereClause_destroy(Vec_drive_query_conditions_WhereClause *ffi); diff --git a/dash-sdk-java/src/main/swig/root.i b/dash-sdk-java/src/main/swig/root.i index 3142888e..d4974764 100644 --- a/dash-sdk-java/src/main/swig/root.i +++ b/dash-sdk-java/src/main/swig/root.i @@ -45,6 +45,7 @@ MemoryFactory & memoryFactory = *MemoryFactory::getInstance(); %include "i128.i" %include "binary_data.i" %include "contract_bounds.i" +%include "credits.i" %include "drive.i" %include "data_contract.i" %include "document.i" diff --git a/platform-mobile/Cargo.lock b/platform-mobile/Cargo.lock index c08fd365..903b8146 100644 --- a/platform-mobile/Cargo.lock +++ b/platform-mobile/Cargo.lock @@ -125,6 +125,16 @@ version = "1.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" +[[package]] +name = "app-connect-contract" +version = "4.2.0-beta.4" +dependencies = [ + "platform-value", + "platform-version", + "serde_json", + "thiserror 2.0.18", +] + [[package]] name = "arc-swap" version = "1.7.1" @@ -767,7 +777,7 @@ dependencies = [ [[package]] name = "dapi-grpc" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "dash-platform-macros", "futures-core", @@ -820,16 +830,18 @@ dependencies = [ [[package]] name = "dash-async" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ + "futures", "thiserror 2.0.18", "tokio", + "tokio-util", "tracing", ] [[package]] name = "dash-context-provider" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "dash-async", "dpp", @@ -852,35 +864,52 @@ dependencies = [ [[package]] name = "dash-network" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ - "bincode", - "bincode_derive", "cbindgen 0.29.4", + "grovedb-bincode", + "grovedb-bincode-derive", "serde", ] [[package]] name = "dash-network-seeds" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ - "dash-network 0.44.0", + "dash-network 0.45.0", ] [[package]] name = "dash-platform-macros" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "heck 0.5.0", "quote", "syn 2.0.95", ] +[[package]] +name = "dash-platform-queries" +version = "4.2.0-beta.4" +dependencies = [ + "dapi-grpc", + "dash-context-provider", + "dash-platform-macros", + "dpp", + "drive", + "drive-proof-verifier", + "hex", + "serde", + "serde_json", + "thiserror 2.0.18", + "tracing", +] + [[package]] name = "dash-sdk" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "arc-swap", "async-trait", @@ -892,6 +921,7 @@ dependencies = [ "dash-context-provider", "dash-network-seeds", "dash-platform-macros", + "dash-platform-queries", "derive_more 1.0.0", "dotenvy", "dpp", @@ -943,21 +973,21 @@ dependencies = [ [[package]] name = "dashcore" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ "anyhow", "base64-compat", "bech32 0.9.1", - "bincode", - "bincode_derive", "bitvec", "blake3", "blsful", - "dash-network 0.44.0", - "dashcore-private 0.44.0", - "dashcore_hashes 0.44.0", + "dash-network 0.45.0", + "dashcore-private 0.45.0", + "dashcore_hashes 0.45.0", "ed25519-dalek", + "grovedb-bincode", + "grovedb-bincode-derive", "hex", "hex_lit", "rustversion", @@ -974,8 +1004,8 @@ source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277 [[package]] name = "dashcore-private" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" [[package]] name = "dashcore-rpc" @@ -992,10 +1022,10 @@ dependencies = [ [[package]] name = "dashcore-rpc" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ - "dashcore-rpc-json 0.44.0", + "dashcore-rpc-json 0.45.0", "hex", "jsonrpc", "serde", @@ -1020,13 +1050,13 @@ dependencies = [ [[package]] name = "dashcore-rpc-json" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ - "bincode", - "dashcore 0.44.0", + "dashcore 0.45.0", + "grovedb-bincode", "hex", - "key-wallet 0.44.0", + "key-wallet 0.45.0", "serde", "serde_json", "serde_repr", @@ -1045,17 +1075,17 @@ dependencies = [ [[package]] name = "dashcore_hashes" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ - "bincode", - "dashcore-private 0.44.0", + "dashcore-private 0.45.0", + "grovedb-bincode", "serde", ] [[package]] name = "dashpay-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -1065,12 +1095,15 @@ dependencies = [ [[package]] name = "data-contracts" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ + "app-connect-contract", "dashpay-contract", + "document-history-contract", "dpns-contract", "keyword-search-contract", "masternode-reward-shares-contract", + "moderation-charters-contract", "platform-value", "platform-version", "serde_json", @@ -1152,6 +1185,16 @@ dependencies = [ "subtle", ] +[[package]] +name = "document-history-contract" +version = "4.2.0-beta.4" +dependencies = [ + "platform-value", + "platform-version", + "serde_json", + "thiserror 2.0.18", +] + [[package]] name = "dotenvy" version = "0.15.7" @@ -1160,7 +1203,7 @@ checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" [[package]] name = "dpns-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -1170,32 +1213,33 @@ dependencies = [ [[package]] name = "dpp" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "anyhow", "async-trait", "base64 0.22.1", "bech32 0.11.1", - "bincode", "bs58", "byteorder", "chrono", "chrono-tz", "ciborium", - "dashcore 0.44.0", - "dashcore-rpc 0.44.0", + "dashcore 0.45.0", + "dashcore-rpc 0.45.0", "data-contracts", "derive_more 1.0.0", "dpp-json-convertible-derive", "env_logger", "ferment-macro", "getrandom", + "grovedb-bincode", "hex", "indexmap 2.14.0", "integer-encoding", "itertools 0.13.0", - "key-wallet 0.44.0", + "key-wallet 0.45.0", "lazy_static", + "libm", "nohash-hasher", "num_enum 0.7.3", "once_cell", @@ -1217,7 +1261,7 @@ dependencies = [ [[package]] name = "dpp-json-convertible-derive" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "proc-macro2", "quote", @@ -1226,17 +1270,18 @@ dependencies = [ [[package]] name = "drive" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ - "bincode", "byteorder", "derive_more 1.0.0", "dpp", "ferment-macro", "grovedb", + "grovedb-bincode", "grovedb-costs", "grovedb-epoch-based-storage-flags", "grovedb-path", + "grovedb-query", "grovedb-version", "hex", "indexmap 2.14.0", @@ -1252,15 +1297,15 @@ dependencies = [ [[package]] name = "drive-proof-verifier" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ - "bincode", "dapi-grpc", "dash-context-provider", "derive_more 1.0.0", "dpp", "drive", "ferment-macro", + "grovedb-bincode", "hex", "indexmap 2.14.0", "platform-serialization", @@ -1671,12 +1716,12 @@ dependencies = [ [[package]] name = "grovedb" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", - "bincode_derive", "blake3", + "grovedb-bincode", + "grovedb-bincode-derive", "grovedb-bulk-append-tree", "grovedb-costs", "grovedb-dense-fixed-sized-merkle-tree", @@ -1692,25 +1737,47 @@ dependencies = [ "thiserror 2.0.18", ] +[[package]] +name = "grovedb-bincode" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce912028682ecc5870a5ad609ea456b76b0bf4ec1ba1eb649400b64ff73a7782" +dependencies = [ + "grovedb-bincode-derive", + "serde", + "unty", +] + +[[package]] +name = "grovedb-bincode-derive" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9eaff4e961dcb3e7e55c34c8c6982249036e5aaa19e55f6dab94ebcd4896b03a" +dependencies = [ + "virtue 0.0.18", +] + [[package]] name = "grovedb-bulk-append-tree" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", "blake3", + "grovedb-bincode", "grovedb-costs", "grovedb-dense-fixed-sized-merkle-tree", "grovedb-merkle-mountain-range", "grovedb-query", + "grovedb-version", "hex", + "integer-encoding", "thiserror 2.0.18", ] [[package]] name = "grovedb-costs" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ "integer-encoding", "intmap", @@ -1719,24 +1786,26 @@ dependencies = [ [[package]] name = "grovedb-dense-fixed-sized-merkle-tree" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", "blake3", + "grovedb-bincode", "grovedb-costs", "grovedb-query", + "grovedb-version", "thiserror 2.0.18", ] [[package]] name = "grovedb-element" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", - "bincode_derive", + "grovedb-bincode", + "grovedb-bincode-derive", "grovedb-path", + "grovedb-query", "grovedb-version", "hex", "integer-encoding", @@ -1745,8 +1814,8 @@ dependencies = [ [[package]] name = "grovedb-epoch-based-storage-flags" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ "grovedb-costs", "hex", @@ -1757,14 +1826,14 @@ dependencies = [ [[package]] name = "grovedb-merk" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", - "bincode_derive", "blake3", "byteorder", "ed", + "grovedb-bincode", + "grovedb-bincode-derive", "grovedb-costs", "grovedb-element", "grovedb-path", @@ -1779,30 +1848,31 @@ dependencies = [ [[package]] name = "grovedb-merkle-mountain-range" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", "blake3", + "grovedb-bincode", "grovedb-costs", + "grovedb-version", ] [[package]] name = "grovedb-path" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ "hex", ] [[package]] name = "grovedb-query" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", "byteorder", "ed", + "grovedb-bincode", "hex", "indexmap 2.14.0", "integer-encoding", @@ -1811,17 +1881,17 @@ dependencies = [ [[package]] name = "grovedb-version" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ "thiserror 2.0.18", - "versioned-feature-core 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "versioned-feature-core", ] [[package]] name = "grovedb-visualize" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ "hex", "itertools 0.14.0", @@ -2309,16 +2379,16 @@ dependencies = [ [[package]] name = "key-wallet" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ "async-trait", "base58ck", "bip39", "bitflags 2.13.0", - "dashcore 0.44.0", - "dashcore-private 0.44.0", - "dashcore_hashes 0.44.0", + "dashcore 0.45.0", + "dashcore-private 0.45.0", + "dashcore_hashes 0.45.0", "getrandom", "hex", "secp256k1", @@ -2332,7 +2402,7 @@ dependencies = [ [[package]] name = "keyword-search-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -2358,6 +2428,12 @@ version = "0.2.186" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66" +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + [[package]] name = "linux-raw-sys" version = "0.4.14" @@ -2400,7 +2476,7 @@ dependencies = [ [[package]] name = "masternode-reward-shares-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -2457,6 +2533,16 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "moderation-charters-contract" +version = "4.2.0-beta.4" +dependencies = [ + "platform-value", + "platform-version", + "serde_json", + "thiserror 2.0.18", +] + [[package]] name = "multiexp" version = "0.4.0" @@ -2543,13 +2629,13 @@ checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" [[package]] name = "num-derive" -version = "0.4.2" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" +checksum = "e4e98dc3b890f6c23a0f9d3d491a2823d0dea0fa656302a13dd225fa924112a8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.95", + "syn 3.0.6", ] [[package]] @@ -2820,17 +2906,19 @@ dependencies = [ [[package]] name = "platform-encryption" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "aes", "cbc", - "dashcore 0.44.0", + "hmac", + "secp256k1", + "sha2", "thiserror 1.0.64", ] [[package]] name = "platform-mobile" -version = "4.0.0" +version = "4.0.1" dependencies = [ "async-trait", "base64 0.13.1", @@ -2875,15 +2963,15 @@ dependencies = [ [[package]] name = "platform-serialization" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ - "bincode", + "grovedb-bincode", "platform-version", ] [[package]] name = "platform-serialization-derive" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "proc-macro2", "quote", @@ -2893,14 +2981,14 @@ dependencies = [ [[package]] name = "platform-value" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "base64 0.22.1", - "bincode", "bs58", "cbindgen 0.26.0", "ciborium", "ferment-macro", + "grovedb-bincode", "hex", "indexmap 2.14.0", "platform-serialization", @@ -2914,19 +3002,19 @@ dependencies = [ [[package]] name = "platform-version" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ - "bincode", "ferment-macro", + "grovedb-bincode", "grovedb-version", "once_cell", "thiserror 2.0.18", - "versioned-feature-core 1.0.0 (git+https://github.com/dashpay/versioned-feature-core)", + "versioned-feature-core", ] [[package]] name = "platform-versioning" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "proc-macro2", "quote", @@ -3198,7 +3286,7 @@ dependencies = [ [[package]] name = "rs-dapi-client" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "backon", "chrono", @@ -3569,14 +3657,15 @@ checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" [[package]] name = "simple-signer" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "async-trait", "base64 0.22.1", - "bincode", "dpp", + "grovedb-bincode", "hex", "tracing", + "zeroize", ] [[package]] @@ -3735,6 +3824,17 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "syn" +version = "3.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "sync_wrapper" version = "1.0.2" @@ -3762,8 +3862,8 @@ dependencies = [ [[package]] name = "tenderdash-abci" -version = "1.5.1" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.5.1#fae47294618125fa9d69150e8a7a5b607af6867c" +version = "1.8.0" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" dependencies = [ "bytes", "hex", @@ -3777,8 +3877,8 @@ dependencies = [ [[package]] name = "tenderdash-proto" -version = "1.5.1" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.5.1#fae47294618125fa9d69150e8a7a5b607af6867c" +version = "1.8.0" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" dependencies = [ "bytes", "chrono", @@ -3795,8 +3895,8 @@ dependencies = [ [[package]] name = "tenderdash-proto-compiler" -version = "1.5.1" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.5.1#fae47294618125fa9d69150e8a7a5b607af6867c" +version = "1.8.0" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" dependencies = [ "fs_extra", "prost-build", @@ -3929,7 +4029,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "token-history-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -4441,11 +4541,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "898c0ad500fdb1914df465a2c729fce33646ef65dfbbbd16a6d8050e0d2404df" -[[package]] -name = "versioned-feature-core" -version = "1.0.0" -source = "git+https://github.com/dashpay/versioned-feature-core#560157096c8405a46ce0f21a2e7e1bd11d6625b4" - [[package]] name = "virtue" version = "0.0.17" @@ -4488,7 +4583,7 @@ dependencies = [ [[package]] name = "wallet-utils-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -4767,7 +4862,7 @@ checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1" [[package]] name = "withdrawals-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "num_enum 0.5.11", "platform-value", diff --git a/platform-mobile/src/clone.rs b/platform-mobile/src/clone.rs index f5e39b24..5b0077cb 100644 --- a/platform-mobile/src/clone.rs +++ b/platform-mobile/src/clone.rs @@ -1,7 +1,10 @@ use std::collections::{BTreeMap, BTreeSet}; use dpp::document::Document; +use dpp::balances::credits::Credits; use crate::state_transition::StateTransitionInfo; use dpp::document::v0::DocumentV0; +use dpp::identity::identity_public_key::contract_bounds::ContractBounds; +use dpp::identity::identity_public_key::v1::IdentityPublicKeyV1; use dpp::identity::identity_public_key::TimestampMillis; use dpp::identity::identity_public_key::KeyID; use dpp::prelude::{BlockHeight, CoreBlockHeight, Revision}; @@ -14,6 +17,7 @@ use dpp::voting::votes::resource_vote::v0::ResourceVoteV0; use dpp::voting::votes::Vote; use drive::query::{OrderClause, WhereClause, WhereOperator}; use drive_proof_verifier::types::{Contenders, ContestedResource, ContestedResources, ResourceVotesByIdentity, VotePollsGroupedByTimestamp, Voter, Voters}; +use platform_value::types::binary_data::BinaryData; use platform_value::{Hash256, Value, ValueMap}; #[allow(non_snake_case)] @@ -33,6 +37,30 @@ pub fn TimestampMillis_clone(time: TimestampMillis) -> TimestampMillis { time.clone() } +#[allow(non_snake_case)] +#[ferment_macro::export] +pub fn ContractBounds_clone(contract_bounds: ContractBounds) -> ContractBounds { + contract_bounds.clone() +} + +#[allow(non_snake_case)] +#[ferment_macro::export] +pub fn BinaryData_clone(data: BinaryData) -> BinaryData { + data.clone() +} + +#[allow(non_snake_case)] +#[ferment_macro::export] +pub fn Credits_clone(credits: Credits) -> Credits { + credits +} + +#[allow(non_snake_case)] +#[ferment_macro::export] +pub fn IdentityPublicKeyV1_clone(public_key: IdentityPublicKeyV1) -> IdentityPublicKeyV1 { + public_key.clone() +} + #[allow(non_snake_case)] #[ferment_macro::export] pub fn prelude_TimestampMillis_clone(time: dpp::prelude::TimestampMillis) -> dpp::prelude::TimestampMillis { diff --git a/platform-mobile/src/config.rs b/platform-mobile/src/config.rs index bc00187b..57b9824e 100644 --- a/platform-mobile/src/config.rs +++ b/platform-mobile/src/config.rs @@ -24,7 +24,7 @@ use platform_version::version::PlatformVersion; use platform_version::version::v7::PLATFORM_V7; use tokio::runtime::{Builder, Runtime}; use crate::logs::setup_logs; -use crate::provider::{Cache, CallbackContextProvider}; +use crate::provider::{CallbackContextProvider, DataContractCache}; use crate::sdk::DashSdk; pub const TESTNET_ADDRESS_LIST: [&str; 29] = [ @@ -314,7 +314,7 @@ impl Config { q, d, None, - Arc::new(Cache::new(NonZeroUsize::new(100).expect("Non Zero"))), + Arc::new(DataContractCache::new(NonZeroUsize::new(100).expect("Non Zero"))), NonZeroUsize::new(100).expect("Non Zero"), ).expect("context provider"); let mut sdk = { @@ -328,12 +328,12 @@ impl Config { sdk.into() } - pub async fn setup_api_with_callbacks_cache( + pub(crate) async fn setup_api_with_callbacks_cache( &self, context_provider_context: * const c_void, q: u64, d: u64, - data_contract_cache: Arc>, + data_contract_cache: Arc, connect_timeout: usize, timeout: usize, retries: usize, @@ -379,12 +379,12 @@ impl Config { sdk.into() } - pub async fn setup_api_with_callbacks_cache_list( + pub(crate) async fn setup_api_with_callbacks_cache_list( &self, context: * const c_void, q: u64, d: u64, - data_contract_cache: Arc>, + data_contract_cache: Arc, address_list: Vec, version: &'static PlatformVersion ) -> Arc { @@ -420,5 +420,3 @@ impl Config { true } } - - diff --git a/platform-mobile/src/data_contracts.rs b/platform-mobile/src/data_contracts.rs index 24ba1fe3..0f421f69 100644 --- a/platform-mobile/src/data_contracts.rs +++ b/platform-mobile/src/data_contracts.rs @@ -13,7 +13,6 @@ use rs_dapi_client::transport::BoxFuture; use tokio::runtime::Builder; use crate::config::{Config, EntryPoint}; use crate::logs::setup_logs; -use crate::provider::Cache; use crate::sdk::{ create_dash_sdk_using_core_mainnet, create_dash_sdk_using_core_testnet, @@ -224,4 +223,4 @@ mod tests { let base58_encoded = encode(&random_bytes, Encoding::Base58); println!("Base58: {}", base58_encoded); } -} \ No newline at end of file +} diff --git a/platform-mobile/src/fetch_document.rs b/platform-mobile/src/fetch_document.rs index 8884b63a..e59f5167 100644 --- a/platform-mobile/src/fetch_document.rs +++ b/platform-mobile/src/fetch_document.rs @@ -21,7 +21,7 @@ use rs_dapi_client::transport::BoxFuture; use dpp::version::LATEST_PLATFORM_VERSION; use dpp::data_contract::accessors::v0::DataContractV0Getters; use dpp::document::serialization_traits::DocumentPlatformConversionMethodsV0; -use crate::provider::Cache; +use crate::provider::DataContractCache; use dash_sdk::query_types::IndexMap; #[ferment_macro::export] pub fn document_to_string(document: Document)-> String { @@ -45,7 +45,7 @@ impl Into for StartPoint { fn fetch_documents_with_retry( sdk: Arc, // No need for a reference; pass the Arc by value - data_contract_cache: Arc>, + data_contract_cache: Arc, query: DocumentQuery, request_settings: RequestSettings, retries_left: usize, diff --git a/platform-mobile/src/provider.rs b/platform-mobile/src/provider.rs index b9a25ef5..d5281987 100644 --- a/platform-mobile/src/provider.rs +++ b/platform-mobile/src/provider.rs @@ -1,6 +1,5 @@ //! Example ContextProvider that uses the Core gRPC API to fetch data from the platform. -use std::hash::Hash; use std::num::NonZeroUsize; use std::os::raw::c_void; use std::ptr::null; @@ -35,7 +34,7 @@ type DataContractCallback = extern "C" fn(id: &Identifier) -> DataContract; /// /// Example [ContextProvider] used by the Sdk for testing purposes. /// -pub struct CallbackContextProvider { +pub(crate) struct CallbackContextProvider { pub context: * const c_void, pub quorum_public_key_callback: QuorumPublicKeyCallback, pub data_contract_callback: DataContractCallback, @@ -49,15 +48,16 @@ pub struct CallbackContextProvider { /// Data contracts cache. /// - /// Users can insert new data contracts into the cache using [`Cache::put`]. - pub data_contracts_cache: Arc>, + /// Data contracts fetched through this provider are stored here. + data_contracts_cache: Arc, /// Quorum public keys cache. /// /// Key is a tuple of quorum hash and quorum type. Value is a quorum public key. /// - /// Users can insert new quorum public keys into the cache using [`Cache::put`]. - pub quorum_public_keys_cache: Cache<([u8; 32], u32), [u8; 48]>, + /// Quorum public keys fetched through this provider are stored here. + quorum_public_keys_cache: + std::sync::RwLock>>, /// Directory where to store dumped data. /// @@ -73,12 +73,12 @@ impl CallbackContextProvider { /// values set by the user in the caches: `data_contracts_cache`, `quorum_public_keys_cache`. /// /// Sdk can be set later with [`CallbackContextProvider::set_sdk`]. - pub fn new( + pub(crate) fn new( context: * const c_void, quorum_public_key_callback: u64, data_contract_callback: u64, sdk: Option>, - data_contract_cache: Arc>, + data_contract_cache: Arc, quorum_public_keys_cache_size: NonZeroUsize, ) -> Result { unsafe { @@ -90,7 +90,9 @@ impl CallbackContextProvider { data_contract_callback: callback2, sdk, data_contracts_cache: data_contract_cache, - quorum_public_keys_cache: Cache::new(quorum_public_keys_cache_size), + quorum_public_keys_cache: std::sync::RwLock::new(lru::LruCache::new( + quorum_public_keys_cache_size, + )), #[cfg(feature = "mocks")] dump_dir: None, }) @@ -102,7 +104,7 @@ impl CallbackContextProvider { /// /// Note that if the `sdk` is `None`, the context provider will not be able to fetch data itself and will rely on /// values set by the user in the caches: `data_contracts_cache`, `quorum_public_keys_cache`. - pub fn set_sdk(&mut self, sdk: Option>) { + pub(crate) fn set_sdk(&mut self, sdk: Option>) { self.sdk = sdk; } } @@ -116,7 +118,10 @@ impl ContextProvider for CallbackContextProvider { ) -> Result<[u8; 48], ContextProviderError> { if let Some(key) = self .quorum_public_keys_cache + .write() + .expect("cache lock poisoned") .get(&(quorum_hash, quorum_type)) + .map(Arc::clone) { tracing::info!("get_quorum_public_key: returning from Cache"); return Ok(*key); @@ -133,7 +138,9 @@ impl ContextProvider for CallbackContextProvider { } else { // store key in cache and return Ok self.quorum_public_keys_cache - .put((quorum_hash, quorum_type), key); + .write() + .expect("cache lock poisoned") + .put((quorum_hash, quorum_type), Arc::new(key)); Ok(key) } @@ -186,34 +193,31 @@ unsafe impl Send for CallbackContextProvider {} unsafe impl Sync for CallbackContextProvider {} -/// Thread-safe cache of various objects inside the SDK. -/// -/// This is used to cache objects that are expensive to fetch from the platform, like data contracts. -pub struct Cache { - // We use a Mutex to allow access to the cache when we don't have mutable &self - // And we use Arc to allow multiple threads to access the cache without having to clone it - inner: std::sync::RwLock>>, +/// Thread-safe data contract cache kept internal to the mobile SDK. +pub(crate) struct DataContractCache { + inner: std::sync::RwLock>>, } -impl Cache { - /// Create new cache - pub fn new(capacity: NonZeroUsize) -> Self { +impl DataContractCache { + pub(crate) fn new(capacity: NonZeroUsize) -> Self { Self { - // inner: std::sync::Mutex::new(lru::LruCache::new(capacity)), inner: std::sync::RwLock::new(lru::LruCache::new(capacity)), } } - /// Get a reference to the value stored under `k`. - pub fn get(&self, k: &K) -> Option> { - let mut guard = self.inner.write().expect("cache lock poisoned"); - guard.get(k).map(Arc::clone) + pub(crate) fn get(&self, id: &Identifier) -> Option> { + self.inner + .write() + .expect("cache lock poisoned") + .get(id) + .map(Arc::clone) } - /// Insert a new value into the cache. - pub fn put(&self, k: K, v: V) { - let mut guard = self.inner.write().expect("cache lock poisoned"); - guard.put(k, Arc::new(v)); + pub(crate) fn put(&self, id: Identifier, data_contract: DataContract) { + self.inner + .write() + .expect("cache lock poisoned") + .put(id, Arc::new(data_contract)); } } diff --git a/platform-mobile/src/put.rs b/platform-mobile/src/put.rs index 6f503cf6..d3f5c1c0 100644 --- a/platform-mobile/src/put.rs +++ b/platform-mobile/src/put.rs @@ -52,7 +52,7 @@ use tracing::trace; use rand::random; use crate::config::{Config, EntryPoint}; use crate::logs::setup_logs; -use crate::provider::Cache; +use crate::provider::DataContractCache; use dapi_grpc::platform::v0::{StateTransitionBroadcastError, WaitForStateTransitionResultResponse}; use dapi_grpc::platform::v0::wait_for_state_transition_result_response::{Version, wait_for_state_transition_result_response_v0}; use dashcore::blockdata::transaction::outpoint::OutPoint; @@ -568,7 +568,7 @@ pub fn topup_identity_sdk( fn put_document_with_retry( sdk: Arc, - data_contract_cache: Arc>, + data_contract_cache: Arc, new_document: Document, document_type: DocumentType, entropy: [u8; 32], @@ -684,11 +684,11 @@ pub fn put_document_sdk( }; trace!("call Document::put_to_platform & wait_for_response"); - let data_contract_cache = unsafe {&(*rust_sdk).data_contract_cache.clone() }; + let data_contract_cache = unsafe { (*rust_sdk).data_contract_cache.clone() }; let extra_retries = settings.request_settings.retries.unwrap_or_else(|| 5usize); let transition = put_document_with_retry( sdk.clone(), - data_contract_cache.clone(), + data_contract_cache, new_document.clone(), document_type.to_owned_document_type(), entropy.clone(), @@ -715,7 +715,7 @@ pub fn put_document_sdk( fn replace_document_with_retry( sdk: Arc, - data_contract_cache: Arc>, + data_contract_cache: Arc, new_document: Document, document_type: DocumentType, identity_public_key: IdentityPublicKey, @@ -815,11 +815,11 @@ pub fn replace_document_sdk( trace!("call Document::replace_on_platform & wait_for_response"); - let data_contract_cache = unsafe {&(*rust_sdk).data_contract_cache.clone() }; + let data_contract_cache = unsafe { (*rust_sdk).data_contract_cache.clone() }; let extra_retries = settings.request_settings.retries.unwrap_or_else(|| 5usize); let transition = replace_document_with_retry( sdk.clone(), - data_contract_cache.clone(), + data_contract_cache, document.clone(), document_type.to_owned_document_type(), identity_public_key.clone(), diff --git a/platform-mobile/src/put_test.rs b/platform-mobile/src/put_test.rs index d8960885..ae40075d 100644 --- a/platform-mobile/src/put_test.rs +++ b/platform-mobile/src/put_test.rs @@ -87,6 +87,7 @@ fn test_put_documents_for_username() { ); let preorder_document = Document::V0( DocumentV0 { + contract_version: None, id: Default::default(), owner_id: owner_id, properties: preorder_props, @@ -134,6 +135,7 @@ fn test_put_documents_for_username() { let domain_document = Document::V0( DocumentV0 { + contract_version: None, id: Default::default(), owner_id: owner_id, properties: domain_props, diff --git a/platform-mobile/src/sdk.rs b/platform-mobile/src/sdk.rs index 9bded463..e43010f9 100644 --- a/platform-mobile/src/sdk.rs +++ b/platform-mobile/src/sdk.rs @@ -13,7 +13,7 @@ use platform_version::version::v11::PLATFORM_V11; use tokio::runtime::{Builder, Runtime}; use crate::config::{Config, EntryPoint}; use crate::logs::setup_logs; -use crate::provider::Cache; +use crate::provider::DataContractCache; #[ferment_macro::opaque] pub struct DashSdk { @@ -21,7 +21,7 @@ pub struct DashSdk { pub runtime: Arc, pub sdk: Arc, pub context_provider_context: * const c_void, - pub data_contract_cache: Arc>, + pub(crate) data_contract_cache: Arc, pub request_settings: RequestSettings } @@ -30,9 +30,6 @@ impl DashSdk { pub fn get_config(&self) -> Arc { self.config.clone() } - pub fn get_data_contract_cache(&self) -> Arc> { - self.data_contract_cache.clone() - } } impl EntryPoint for DashSdk { @@ -79,7 +76,7 @@ pub fn update_sdk_with_address_list( unsafe { (*rust_sdk).context_provider_context }, quorum_public_key_callback, data_contract_callback, - unsafe { (*rust_sdk).get_data_contract_cache() }, + unsafe { (*rust_sdk).data_contract_cache.clone() }, address_list, version ).await; @@ -153,7 +150,7 @@ pub fn create_dash_sdk_with_context( }; tracing::info!("configuring for testnet={} using platform port={}", cfg.is_testnet, cfg.platform_port); tracing::info!("configuring platform version {:?}", version); - let data_contract_cache = Arc::new(Cache::new(NonZeroUsize::new(100).expect("Non Zero"))); + let data_contract_cache = Arc::new(DataContractCache::new(NonZeroUsize::new(100).expect("Non Zero"))); let sdk = if quorum_public_key_callback != 0 { // use the callbacks to obtain quorum public keys cfg.setup_api_with_callbacks_cache( @@ -215,7 +212,7 @@ pub fn create_dash_sdk_using_single_evonode( } else { &PLATFORM_V11 }; - let data_contract_cache = Arc::new(Cache::new(NonZeroUsize::new(100).expect("Non Zero"))); + let data_contract_cache = Arc::new(DataContractCache::new(NonZeroUsize::new(100).expect("Non Zero"))); let sdk = if quorum_public_key_callback != 0 { // use the callbacks to obtain quorum public keys cfg.setup_api_with_callbacks_cache_list(std::ptr::null(), quorum_public_key_callback, data_contract_callback, data_contract_cache.clone(), vec![evonode], version).await @@ -251,4 +248,4 @@ fn test_dash_sdk() { let my_sdk = create_dash_sdk_using_core_testnet(); let my_boxed_sdk = boxed(my_sdk); destroy_dash_sdk(my_boxed_sdk); -} \ No newline at end of file +} diff --git a/platform-mobile/src/state_transition.rs b/platform-mobile/src/state_transition.rs index 2dd97431..68568408 100644 --- a/platform-mobile/src/state_transition.rs +++ b/platform-mobile/src/state_transition.rs @@ -1,6 +1,6 @@ use dpp::identity::identity_public_key::IdentityPublicKey; -use dpp::serialization::PlatformDeserializable; -use dpp::state_transition::StateTransition; +use dpp::serialization::PlatformSerializable; +use dpp::state_transition::{StateTransition, StateTransitionType}; use dpp::state_transition::identity_update_transition::accessors::IdentityUpdateTransitionAccessorsV0; /// A summary of a deserialized state transition. @@ -35,7 +35,8 @@ pub struct StateTransitionInfo { #[ferment_macro::export] pub fn deserialize_state_transition(bytes: Vec) -> Result { let state_transition = - StateTransition::deserialize_from_bytes(&bytes).map_err(|e| e.to_string())?; + StateTransition::deserialize_untagged_untrusted_exact(StateTransitionType::IdentityUpdate, + &bytes).map_err(|e| e.to_string())?; let (revision, identity_nonce) = match &state_transition { StateTransition::IdentityUpdate(transition) => (transition.revision(), transition.nonce()), @@ -61,7 +62,8 @@ pub fn identity_update_public_keys_to_add( bytes: Vec, ) -> Result, String> { let state_transition = - StateTransition::deserialize_from_bytes(&bytes).map_err(|e| e.to_string())?; + StateTransition::deserialize_untagged_untrusted_exact( + StateTransitionType::IdentityUpdate, &bytes).map_err(|e| e.to_string())?; let keys = match state_transition { StateTransition::IdentityUpdate(transition) => transition .public_keys_to_add() From 42ff8ff157cd5f11e7e1ea0e7426e7fb3b8882ad Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Mon, 28 Sep 2026 15:17:53 -0700 Subject: [PATCH 02/21] feat: upgrade to v4.2-dev.8 --- dash-sdk-android/src/main/rust/Cargo.lock | 333 +- .../src/main/rust/src/fermented.rs | 10227 +--------------- dash-sdk-bindings/rust-toolchain.toml | 2 +- platform-mobile/rust-toolchain.toml | 2 +- platform-mobile/src/config.rs | 54 +- platform-mobile/src/core.rs | 5 +- platform-mobile/src/put.rs | 3 +- platform-mobile/src/put_test.rs | 6 +- platform-mobile/src/sdk.rs | 23 +- 9 files changed, 254 insertions(+), 10401 deletions(-) diff --git a/dash-sdk-android/src/main/rust/Cargo.lock b/dash-sdk-android/src/main/rust/Cargo.lock index 4664319d..83c5daeb 100644 --- a/dash-sdk-android/src/main/rust/Cargo.lock +++ b/dash-sdk-android/src/main/rust/Cargo.lock @@ -125,6 +125,16 @@ version = "1.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" +[[package]] +name = "app-connect-contract" +version = "4.2.0-beta.4" +dependencies = [ + "platform-value", + "platform-version", + "serde_json", + "thiserror 2.0.18", +] + [[package]] name = "arc-swap" version = "1.7.1" @@ -818,7 +828,7 @@ dependencies = [ [[package]] name = "dapi-grpc" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "dash-platform-macros", "futures-core", @@ -871,16 +881,18 @@ dependencies = [ [[package]] name = "dash-async" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ + "futures", "thiserror 2.0.18", "tokio", + "tokio-util", "tracing", ] [[package]] name = "dash-context-provider" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "dash-async", "dpp", @@ -903,35 +915,52 @@ dependencies = [ [[package]] name = "dash-network" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ - "bincode", - "bincode_derive", "cbindgen 0.29.4", + "grovedb-bincode", + "grovedb-bincode-derive", "serde", ] [[package]] name = "dash-network-seeds" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ - "dash-network 0.44.0", + "dash-network 0.45.0", ] [[package]] name = "dash-platform-macros" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "heck 0.5.0", "quote", "syn 2.0.95", ] +[[package]] +name = "dash-platform-queries" +version = "4.2.0-beta.4" +dependencies = [ + "dapi-grpc", + "dash-context-provider", + "dash-platform-macros", + "dpp", + "drive", + "drive-proof-verifier", + "hex", + "serde", + "serde_json", + "thiserror 2.0.18", + "tracing", +] + [[package]] name = "dash-sdk" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "arc-swap", "async-trait", @@ -943,6 +972,7 @@ dependencies = [ "dash-context-provider", "dash-network-seeds", "dash-platform-macros", + "dash-platform-queries", "derive_more 1.0.0", "dotenvy", "dpp", @@ -1012,21 +1042,21 @@ dependencies = [ [[package]] name = "dashcore" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ "anyhow", "base64-compat", "bech32 0.9.1", - "bincode", - "bincode_derive", "bitvec", "blake3", "blsful", - "dash-network 0.44.0", - "dashcore-private 0.44.0", - "dashcore_hashes 0.44.0", + "dash-network 0.45.0", + "dashcore-private 0.45.0", + "dashcore_hashes 0.45.0", "ed25519-dalek", + "grovedb-bincode", + "grovedb-bincode-derive", "hex", "hex_lit", "rustversion", @@ -1043,8 +1073,8 @@ source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277 [[package]] name = "dashcore-private" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" [[package]] name = "dashcore-rpc" @@ -1061,10 +1091,10 @@ dependencies = [ [[package]] name = "dashcore-rpc" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ - "dashcore-rpc-json 0.44.0", + "dashcore-rpc-json 0.45.0", "hex", "jsonrpc", "serde", @@ -1089,13 +1119,13 @@ dependencies = [ [[package]] name = "dashcore-rpc-json" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ - "bincode", - "dashcore 0.44.0", + "dashcore 0.45.0", + "grovedb-bincode", "hex", - "key-wallet 0.44.0", + "key-wallet 0.45.0", "serde", "serde_json", "serde_repr", @@ -1114,17 +1144,17 @@ dependencies = [ [[package]] name = "dashcore_hashes" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ - "bincode", - "dashcore-private 0.44.0", + "dashcore-private 0.45.0", + "grovedb-bincode", "serde", ] [[package]] name = "dashpay-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -1134,12 +1164,15 @@ dependencies = [ [[package]] name = "data-contracts" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ + "app-connect-contract", "dashpay-contract", + "document-history-contract", "dpns-contract", "keyword-search-contract", "masternode-reward-shares-contract", + "moderation-charters-contract", "platform-value", "platform-version", "serde_json", @@ -1221,6 +1254,16 @@ dependencies = [ "subtle", ] +[[package]] +name = "document-history-contract" +version = "4.2.0-beta.4" +dependencies = [ + "platform-value", + "platform-version", + "serde_json", + "thiserror 2.0.18", +] + [[package]] name = "dotenvy" version = "0.15.7" @@ -1229,7 +1272,7 @@ checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" [[package]] name = "dpns-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -1239,32 +1282,33 @@ dependencies = [ [[package]] name = "dpp" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "anyhow", "async-trait", "base64 0.22.1", "bech32 0.11.1", - "bincode", "bs58", "byteorder", "chrono", "chrono-tz", "ciborium", - "dashcore 0.44.0", - "dashcore-rpc 0.44.0", + "dashcore 0.45.0", + "dashcore-rpc 0.45.0", "data-contracts", "derive_more 1.0.0", "dpp-json-convertible-derive", "env_logger", "ferment-macro 0.2.3", "getrandom", + "grovedb-bincode", "hex", "indexmap 2.14.0", "integer-encoding", "itertools 0.13.0", - "key-wallet 0.44.0", + "key-wallet 0.45.0", "lazy_static", + "libm", "nohash-hasher", "num_enum 0.7.3", "once_cell", @@ -1286,7 +1330,7 @@ dependencies = [ [[package]] name = "dpp-json-convertible-derive" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "proc-macro2", "quote", @@ -1295,17 +1339,18 @@ dependencies = [ [[package]] name = "drive" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ - "bincode", "byteorder", "derive_more 1.0.0", "dpp", "ferment-macro 0.2.3", "grovedb", + "grovedb-bincode", "grovedb-costs", "grovedb-epoch-based-storage-flags", "grovedb-path", + "grovedb-query", "grovedb-version", "hex", "indexmap 2.14.0", @@ -1321,15 +1366,15 @@ dependencies = [ [[package]] name = "drive-proof-verifier" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ - "bincode", "dapi-grpc", "dash-context-provider", "derive_more 1.0.0", "dpp", "drive", "ferment-macro 0.2.3", + "grovedb-bincode", "hex", "indexmap 2.14.0", "platform-serialization", @@ -1771,12 +1816,12 @@ dependencies = [ [[package]] name = "grovedb" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", - "bincode_derive", "blake3", + "grovedb-bincode", + "grovedb-bincode-derive", "grovedb-bulk-append-tree", "grovedb-costs", "grovedb-dense-fixed-sized-merkle-tree", @@ -1792,25 +1837,47 @@ dependencies = [ "thiserror 2.0.18", ] +[[package]] +name = "grovedb-bincode" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce912028682ecc5870a5ad609ea456b76b0bf4ec1ba1eb649400b64ff73a7782" +dependencies = [ + "grovedb-bincode-derive", + "serde", + "unty", +] + +[[package]] +name = "grovedb-bincode-derive" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9eaff4e961dcb3e7e55c34c8c6982249036e5aaa19e55f6dab94ebcd4896b03a" +dependencies = [ + "virtue 0.0.18", +] + [[package]] name = "grovedb-bulk-append-tree" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", "blake3", + "grovedb-bincode", "grovedb-costs", "grovedb-dense-fixed-sized-merkle-tree", "grovedb-merkle-mountain-range", "grovedb-query", + "grovedb-version", "hex", + "integer-encoding", "thiserror 2.0.18", ] [[package]] name = "grovedb-costs" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ "integer-encoding", "intmap", @@ -1819,24 +1886,26 @@ dependencies = [ [[package]] name = "grovedb-dense-fixed-sized-merkle-tree" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", "blake3", + "grovedb-bincode", "grovedb-costs", "grovedb-query", + "grovedb-version", "thiserror 2.0.18", ] [[package]] name = "grovedb-element" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", - "bincode_derive", + "grovedb-bincode", + "grovedb-bincode-derive", "grovedb-path", + "grovedb-query", "grovedb-version", "hex", "integer-encoding", @@ -1845,8 +1914,8 @@ dependencies = [ [[package]] name = "grovedb-epoch-based-storage-flags" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ "grovedb-costs", "hex", @@ -1857,14 +1926,14 @@ dependencies = [ [[package]] name = "grovedb-merk" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", - "bincode_derive", "blake3", "byteorder", "ed", + "grovedb-bincode", + "grovedb-bincode-derive", "grovedb-costs", "grovedb-element", "grovedb-path", @@ -1879,30 +1948,31 @@ dependencies = [ [[package]] name = "grovedb-merkle-mountain-range" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", "blake3", + "grovedb-bincode", "grovedb-costs", + "grovedb-version", ] [[package]] name = "grovedb-path" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ "hex", ] [[package]] name = "grovedb-query" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ - "bincode", "byteorder", "ed", + "grovedb-bincode", "hex", "indexmap 2.14.0", "integer-encoding", @@ -1911,17 +1981,17 @@ dependencies = [ [[package]] name = "grovedb-version" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ "thiserror 2.0.18", - "versioned-feature-core 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", + "versioned-feature-core", ] [[package]] name = "grovedb-visualize" -version = "5.0.0" -source = "git+https://github.com/dashpay/grovedb?tag=v5.0.0#9b98a35644cdea73cc1b21d7c122cb58ae9fafd8" +version = "6.0.1" +source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" dependencies = [ "hex", "itertools 0.14.0", @@ -2409,16 +2479,16 @@ dependencies = [ [[package]] name = "key-wallet" -version = "0.44.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=991c6ebe24d7ea8ba7d900a052b25be8c5498409#991c6ebe24d7ea8ba7d900a052b25be8c5498409" +version = "0.45.0" +source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" dependencies = [ "async-trait", "base58ck", "bip39", "bitflags 2.13.0", - "dashcore 0.44.0", - "dashcore-private 0.44.0", - "dashcore_hashes 0.44.0", + "dashcore 0.45.0", + "dashcore-private 0.45.0", + "dashcore_hashes 0.45.0", "getrandom", "hex", "secp256k1", @@ -2432,7 +2502,7 @@ dependencies = [ [[package]] name = "keyword-search-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -2458,6 +2528,12 @@ version = "0.2.186" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66" +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + [[package]] name = "linux-raw-sys" version = "0.4.14" @@ -2500,7 +2576,7 @@ dependencies = [ [[package]] name = "masternode-reward-shares-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -2557,6 +2633,16 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "moderation-charters-contract" +version = "4.2.0-beta.4" +dependencies = [ + "platform-value", + "platform-version", + "serde_json", + "thiserror 2.0.18", +] + [[package]] name = "multiexp" version = "0.4.0" @@ -2643,13 +2729,13 @@ checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" [[package]] name = "num-derive" -version = "0.4.2" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" +checksum = "e4e98dc3b890f6c23a0f9d3d491a2823d0dea0fa656302a13dd225fa924112a8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.95", + "syn 3.0.6", ] [[package]] @@ -2920,11 +3006,13 @@ dependencies = [ [[package]] name = "platform-encryption" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "aes", "cbc", - "dashcore 0.44.0", + "hmac", + "secp256k1", + "sha2", "thiserror 1.0.64", ] @@ -2975,15 +3063,15 @@ dependencies = [ [[package]] name = "platform-serialization" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ - "bincode", + "grovedb-bincode", "platform-version", ] [[package]] name = "platform-serialization-derive" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "proc-macro2", "quote", @@ -2993,14 +3081,14 @@ dependencies = [ [[package]] name = "platform-value" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "base64 0.22.1", - "bincode", "bs58", "cbindgen 0.26.0", "ciborium", "ferment-macro 0.2.3", + "grovedb-bincode", "hex", "indexmap 2.14.0", "platform-serialization", @@ -3014,19 +3102,19 @@ dependencies = [ [[package]] name = "platform-version" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ - "bincode", "ferment-macro 0.2.3", + "grovedb-bincode", "grovedb-version", "once_cell", "thiserror 2.0.18", - "versioned-feature-core 1.0.0 (git+https://github.com/dashpay/versioned-feature-core)", + "versioned-feature-core", ] [[package]] name = "platform-versioning" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "proc-macro2", "quote", @@ -3298,7 +3386,7 @@ dependencies = [ [[package]] name = "rs-dapi-client" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "backon", "chrono", @@ -3691,14 +3779,15 @@ checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" [[package]] name = "simple-signer" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "async-trait", "base64 0.22.1", - "bincode", "dpp", + "grovedb-bincode", "hex", "tracing", + "zeroize", ] [[package]] @@ -3857,6 +3946,17 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "syn" +version = "3.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + [[package]] name = "sync_wrapper" version = "1.0.2" @@ -3884,8 +3984,8 @@ dependencies = [ [[package]] name = "tenderdash-abci" -version = "1.5.1" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.5.1#fae47294618125fa9d69150e8a7a5b607af6867c" +version = "1.8.0" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" dependencies = [ "bytes", "hex", @@ -3899,8 +3999,8 @@ dependencies = [ [[package]] name = "tenderdash-proto" -version = "1.5.1" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.5.1#fae47294618125fa9d69150e8a7a5b607af6867c" +version = "1.8.0" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" dependencies = [ "bytes", "chrono", @@ -3917,8 +4017,8 @@ dependencies = [ [[package]] name = "tenderdash-proto-compiler" -version = "1.5.1" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.5.1#fae47294618125fa9d69150e8a7a5b607af6867c" +version = "1.8.0" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" dependencies = [ "fs_extra", "prost-build", @@ -4051,7 +4151,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "token-history-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -4580,11 +4680,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "898c0ad500fdb1914df465a2c729fce33646ef65dfbbbd16a6d8050e0d2404df" -[[package]] -name = "versioned-feature-core" -version = "1.0.0" -source = "git+https://github.com/dashpay/versioned-feature-core#560157096c8405a46ce0f21a2e7e1bd11d6625b4" - [[package]] name = "virtue" version = "0.0.17" @@ -4627,7 +4722,7 @@ dependencies = [ [[package]] name = "wallet-utils-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "platform-value", "platform-version", @@ -4906,7 +5001,7 @@ checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1" [[package]] name = "withdrawals-contract" -version = "4.0.0" +version = "4.2.0-beta.4" dependencies = [ "num_enum 0.5.11", "platform-value", diff --git a/dash-sdk-android/src/main/rust/src/fermented.rs b/dash-sdk-android/src/main/rust/src/fermented.rs index d2b05370..5f60fbab 100644 --- a/dash-sdk-android/src/main/rust/src/fermented.rs +++ b/dash-sdk-android/src/main/rust/src/fermented.rs @@ -1,10226 +1 @@ -#[allow( - clippy::let_and_return, - clippy::suspicious_else_formatting, - clippy::redundant_field_names, - dead_code, - non_camel_case_types, - non_snake_case, - non_upper_case_globals, - redundant_semicolons, - unreachable_patterns, - unused_braces, - unused_imports, - unused_parens, - unused_qualifications, - unused_unsafe, - unused_variables -)] -pub mod types { - pub mod rs_dapi_client { - use crate as dash_sdk_bindings; - - pub mod executor { use crate as dash_sdk_bindings; } - - pub mod address_list { use crate as dash_sdk_bindings; } - - pub mod transport { use crate as dash_sdk_bindings; } - - pub mod request_settings { use crate as dash_sdk_bindings; } - - pub mod connection_pool { use crate as dash_sdk_bindings; } - - pub mod dapi_client { use crate as dash_sdk_bindings; } - } - - pub mod drive { - use crate as dash_sdk_bindings; - - #[cfg(any(feature = "server", feature = "verify", feature = "fixtures-and-mocks"))] - pub mod util { - use crate as dash_sdk_bindings; - - #[cfg(any(test, feature = "server", feature = "fixtures-and-mocks"))] - pub mod test_helpers { - use crate as dash_sdk_bindings; - - #[cfg(any(test, feature = "fixtures-and-mocks"))] - pub mod test_utils { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod batch { - use crate as dash_sdk_bindings; - - pub mod drive_op_batch { - use crate as dash_sdk_bindings; - - pub mod drive_methods { - use crate as dash_sdk_bindings; - - pub mod apply_drive_operations { use crate as dash_sdk_bindings; } - - pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings; } - } - - pub mod token { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod operations { - use crate as dash_sdk_bindings; - - pub mod commit_transaction { use crate as dash_sdk_bindings; } - - pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings; } - - pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings; } - - pub mod drop_cache { use crate as dash_sdk_bindings; } - - pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings; } - - pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings; } - - pub mod rollback_transaction { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod common { - use crate as dash_sdk_bindings; - - pub mod encode { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod grove_operations { - use crate as dash_sdk_bindings; - - pub mod grove_insert_empty_tree { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_get_big_sum_tree_total_value { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_delete { use crate as dash_sdk_bindings; } - - pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings; } - - pub mod grove_insert { use crate as dash_sdk_bindings; } - - pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings; } - - pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings; } - - pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings; } - - pub mod grove_get_path_query { use crate as dash_sdk_bindings; } - - pub mod batch_insert_if_changed_value { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_get_raw_optional_item { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_remove_raw { use crate as dash_sdk_bindings; } - - pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings; } - - pub mod batch_insert_empty_count_tree { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_get { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_insert_empty_sum_tree { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_get_sum_tree_total_value { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_insert_if_not_exists_return_existing_element { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_insert_empty_tree { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings; } - - pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings; } - - pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings; } - - pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings; } - - pub mod grove_get_raw { use crate as dash_sdk_bindings; } - - pub mod grove_get_raw_item { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_move_items_in_path_query { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings; } - - pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings; } - - pub mod batch_insert_item_with_sum_item_if_not_exists { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_clear { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings; } - - pub mod batch_move { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_apply_operation { use crate as dash_sdk_bindings; } - - pub mod grove_get_raw_optional { use crate as dash_sdk_bindings; } - - pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings; } - - pub mod grove_has_raw { use crate as dash_sdk_bindings; } - - pub mod batch_insert_if_not_exists { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings; } - - pub mod batch_insert_empty_count_sum_tree { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings; } - - pub mod batch_insert_sum_item_or_add_to_if_already_exists { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_delete_items_in_path_query { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_insert_sum_item_if_not_exists { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_insert { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings; } - - pub mod grove_get_proved_path_query_v1 { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_replace { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings; } - - pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings; } - - pub mod grove_get_path_query_serialized_or_sum_results { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings; } - - pub mod batch_insert_empty_provable_count_tree { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings; } - - pub mod batch_insert_empty_tree_if_not_exists { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod batch_refresh_reference { use crate as dash_sdk_bindings; } - - pub mod batch_insert_if_not_exists_return_existing_element { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod grove_delete { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod object_size_info { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod drive_key_info { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod path_key_info { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod contract_info { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod path_key_element_info { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod document_info { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod key_value_info { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod path_info { - use crate as dash_sdk_bindings; - } - } - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod prove_state_transition { - use crate as dash_sdk_bindings; - } - - pub mod prove_multiple_state_transition_results { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_elements { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod verify { - use crate as dash_sdk_bindings; - - pub mod identity { - use crate as dash_sdk_bindings; - - pub mod verify_identity_nonce { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings; } - - pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings; } - - pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings; } - - pub mod verify_full_identity_by_non_unique_public_key_hash { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_identity_keys_by_identity_id { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_full_identity_by_identity_id { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_identity_balance_and_revision_for_identity_id { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings; } - - pub mod verify_identity_id_by_non_unique_public_key_hash { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings; } - - pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings; } - - pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings; } - - pub mod verify_identity_revision_for_identity_id { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings; } - - pub mod verify_identity_contract_nonce { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod group { - use crate as dash_sdk_bindings; - - pub mod verify_active_action_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_group_info { use crate as dash_sdk_bindings; } - - pub mod verify_action_signers_total_power { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings; } - - pub mod verify_action_signers { use crate as dash_sdk_bindings; } - } - - pub mod document_sum { - use crate as dash_sdk_bindings; - - pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings; } - - pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings; } - - pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings; } - - pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings; } - - pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings; } - - pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings; } - - pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings; } - - pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings; } - - pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings; } - - pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings; } - } - - pub mod state_transition { - use crate as dash_sdk_bindings; - - pub mod verify_state_transition_was_executed_with_proof { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod state_transition_execution_path_queries { - use crate as dash_sdk_bindings; - - pub mod token_transition { use crate as dash_sdk_bindings; } - } - } - - pub mod single_document { - use crate as dash_sdk_bindings; - - pub mod verify_proof { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_proof_keep_serialized { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod tokens { - use crate as dash_sdk_bindings; - - pub mod verify_token_direct_selling_price { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings; } - - pub mod verify_token_info_for_identity_id { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_direct_selling_prices { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_infos_for_identity_ids { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_status { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_pre_programmed_distributions { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings; } - - pub mod verify_token_total_supply_and_aggregated_identity_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_perpetual_distribution_last_paid_time { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_contract_info { use crate as dash_sdk_bindings; } - - pub mod verify_token_balance_for_identity_id { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_infos_for_identity_id { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_token_statuses { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod contract { - use crate as dash_sdk_bindings; - - pub mod verify_contract { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_contract_history { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_contract_return_serialization { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod document { - use crate as dash_sdk_bindings; - - pub mod verify_document_history { use crate as dash_sdk_bindings; } - - pub mod verify_proof { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_start_at_document_in_proof { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_proof_keep_serialized { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod voting { - use crate as dash_sdk_bindings; - - pub mod verify_masternode_vote { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_specialized_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_vote_poll_vote_state_proof { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_vote_poll_votes_proof { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_identity_votes_given_proof { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_vote_polls_end_date_query { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_contests_proof { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod system { - use crate as dash_sdk_bindings; - - pub mod verify_upgrade_vote_status { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_epoch_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings; } - - pub mod verify_elements { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_upgrade_state { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_finalized_epoch_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_epoch_proposers { use crate as dash_sdk_bindings; } - } - - pub mod shielded { - use crate as dash_sdk_bindings; - - pub mod verify_shielded_pool_state { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_shielded_encrypted_notes { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_most_recent_shielded_anchor { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_shielded_nullifiers { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_shielded_anchors { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_shielded_notes_count { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod address_funds { - use crate as dash_sdk_bindings; - - pub mod verify_address_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_recent_address_balance_changes { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings; } - - pub mod verify_compacted_address_balance_changes { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings; } - - pub mod verify_addresses_infos { use crate as dash_sdk_bindings; } - } - - pub mod document_count { - use crate as dash_sdk_bindings; - - pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings; } - - pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings; } - - pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings; } - - pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings; } - - pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod open { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod error { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod state_transition_action { - use crate as dash_sdk_bindings; - - pub mod batch { - use crate as dash_sdk_bindings; - - pub mod batched_transition { - use crate as dash_sdk_bindings; - - pub mod token_transition { - use crate as dash_sdk_bindings; - - pub mod token_unfreeze_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod token_destroy_frozen_funds_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod token_set_price_for_direct_purchase_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod token_claim_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod token_burn_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_transition_action_type { use crate as dash_sdk_bindings; } - - pub mod token_base_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_direct_purchase_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod token_config_update_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod token_emergency_action_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod token_transfer_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod token_mint_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_freeze_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - } - - pub mod document_transition { - use crate as dash_sdk_bindings; - - pub mod document_purchase_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_replace_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_delete_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_update_price_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_base_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_transfer_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_create_transition_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - } - - pub mod system { - use crate as dash_sdk_bindings; - - pub mod bump_identity_data_contract_nonce_action { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - - pub mod transformer { use crate as dash_sdk_bindings; } - } - - pub mod partially_use_asset_lock_action { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod bump_identity_nonce_action { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod bump_address_input_nonces_action { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - } - - pub mod action_convert_to_operations { - use crate as dash_sdk_bindings; - - pub mod identity { - use crate as dash_sdk_bindings; - - pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings; } - - pub mod identity_create_transition { use crate as dash_sdk_bindings; } - - pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings; } - - pub mod identity_top_up_transition { use crate as dash_sdk_bindings; } - - pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings; } - - pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings; } - - pub mod identity_update_transition { use crate as dash_sdk_bindings; } - - pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings; } - - pub mod masternode_vote_transition { use crate as dash_sdk_bindings; } - } - - pub mod batch { - use crate as dash_sdk_bindings; - - pub mod batch_transition { use crate as dash_sdk_bindings; } - - pub mod token { use crate as dash_sdk_bindings; } - - pub mod document { use crate as dash_sdk_bindings; } - } - - pub mod shielded { - use crate as dash_sdk_bindings; - - pub mod shielded_transfer_transition { use crate as dash_sdk_bindings; } - - pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings; } - - pub mod shield_transition { use crate as dash_sdk_bindings; } - - pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings; } - - pub mod unshield_transition { use crate as dash_sdk_bindings; } - - pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings; } - } - - pub mod address_funds { - use crate as dash_sdk_bindings; - - pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings; } - - pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings; } - - pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings; } - } - - pub mod contract { - use crate as dash_sdk_bindings; - - pub mod data_contract_update_transition { use crate as dash_sdk_bindings; } - - pub mod data_contract_create_transition { use crate as dash_sdk_bindings; } - } - - pub mod system { - use crate as dash_sdk_bindings; - - pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings; } - - pub mod bump_address_input_nonces { use crate as dash_sdk_bindings; } - - pub mod partially_use_asset_lock { use crate as dash_sdk_bindings; } - - pub mod bump_identity_nonce { use crate as dash_sdk_bindings; } - } - } - - pub mod shielded { - use crate as dash_sdk_bindings; - - pub mod identity_create_from_shielded_pool { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod shield { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod shield_from_asset_lock { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod shielded_withdrawal { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod shielded_transfer { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod unshield { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod address_funds { - use crate as dash_sdk_bindings; - - pub mod address_funding_from_asset_lock { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod address_funds_transfer { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod address_credit_withdrawal { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod contract { - use crate as dash_sdk_bindings; - - pub mod data_contract_update { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod data_contract_create { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod identity { - use crate as dash_sdk_bindings; - - pub mod identity_credit_transfer_to_addresses { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod identity_create_from_addresses { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - - pub mod identity_topup { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod masternode_vote { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod identity_update { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod identity_credit_transfer { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod identity_create { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod identity_credit_withdrawal { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod transformer { use crate as dash_sdk_bindings; } - } - - pub mod identity_topup_from_addresses { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod transformer { use crate as dash_sdk_bindings; } - } - } - } - } - - #[cfg(feature = "server")] - pub mod cache { - use crate as dash_sdk_bindings; - - pub mod data_contract { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - #[cfg(feature = "server")] - pub mod fees { - use crate as dash_sdk_bindings; - - pub mod op { use crate as dash_sdk_bindings; } - - pub mod calculate_fee { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod drive { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod asset_lock { - use crate as dash_sdk_bindings; - - pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings; } - - pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings; } - - pub mod estimation_costs { - use crate as dash_sdk_bindings; - - pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings; } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod balances { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod remove_from_system_credits_operations { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod remove_from_system_credits { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod add_to_system_credits { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod add_to_system_credits_operations { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod calculate_total_credits_balance { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod votes { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod insert { - use crate as dash_sdk_bindings; - - pub mod vote_poll { - use crate as dash_sdk_bindings; - - pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings; } - } - - pub mod contested_resource { - use crate as dash_sdk_bindings; - - pub mod insert_stored_info_for_contested_resource_vote_poll { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod individual_vote { - use crate as dash_sdk_bindings; - - pub mod register_contested_resource_identity_vote { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - - pub mod register_identity_vote { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod cleanup { - use crate as dash_sdk_bindings; - - pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings; } - - pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings; } - - pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings; } - - pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings; } - - pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings; } - - pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings; } - - pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings; } - - pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod resolved { - use crate as dash_sdk_bindings; - - pub mod votes { - use crate as dash_sdk_bindings; - - pub mod resolved_resource_vote { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - } - - pub mod vote_polls { - use crate as dash_sdk_bindings; - - pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod fetch { - use crate as dash_sdk_bindings; - - pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings; } - - pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings; } - - pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod paths { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod storage_form { - use crate as dash_sdk_bindings; - - pub mod vote_storage_form { use crate as dash_sdk_bindings; } - - pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod setup { - use crate as dash_sdk_bindings; - - pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod platform_state { - use crate as dash_sdk_bindings; - - pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings; } - - pub mod store_platform_state_bytes { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod group { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod insert { - use crate as dash_sdk_bindings; - - pub mod add_new_groups { use crate as dash_sdk_bindings; } - - pub mod add_group_action { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - pub mod prove_action_signers { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_group_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_action_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_group_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod queries { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - pub mod fetch { - use crate as dash_sdk_bindings; - - pub mod fetch_action_id_info_keep_serialized { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_action_id_signers_power { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_group_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_action_id_has_signer { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_active_action_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_group_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_action_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_action_is_closed { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_action_signers { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod estimated_costs { - use crate as dash_sdk_bindings; - - pub mod for_add_groups { use crate as dash_sdk_bindings; } - - pub mod for_add_group_action { use crate as dash_sdk_bindings; } - } - - pub mod paths { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify", feature = "fixtures-and-mocks"))] - pub mod contract { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod migration { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod estimation_costs { - use crate as dash_sdk_bindings; - - pub mod add_estimation_costs_for_contract_insertion { - use crate as dash_sdk_bindings; - - pub mod v1 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod update { - use crate as dash_sdk_bindings; - - pub mod update_description { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod update_contract { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod v1 { use crate as dash_sdk_bindings; } - } - - pub mod update_keywords { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod insert { - use crate as dash_sdk_bindings; - - pub mod add_new_keywords { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod add_contract_to_storage { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod insert_contract { - use crate as dash_sdk_bindings; - - pub mod v1 { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - pub mod add_description { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - pub mod prove_contract_history { use crate as dash_sdk_bindings; } - - pub mod prove_contract { use crate as dash_sdk_bindings; } - - pub mod prove_contracts { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod apply { - use crate as dash_sdk_bindings; - - pub mod apply_contract { use crate as dash_sdk_bindings; } - - pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod get_fetch { - use crate as dash_sdk_bindings; - - pub mod fetch_contract_ids { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings; } - - pub mod fetch_contracts { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_contract { use crate as dash_sdk_bindings; } - - pub mod fetch_contract_with_history { use crate as dash_sdk_bindings; } - - pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings; } - - pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings; } - - pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings; } - } - } - - #[cfg(any(feature = "server", feature = "verify", feature = "fixtures-and-mocks"))] - pub mod document { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod index_uniqueness { - use crate as dash_sdk_bindings; - - pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings; } - - pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings; } - - pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings; } - - pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings; } - - pub mod internal { - use crate as dash_sdk_bindings; - - pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings; } - } - - pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "fixtures-and-mocks"))] - pub mod query { - use crate as dash_sdk_bindings; - - pub mod query_documents { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_document_history_query { use crate as dash_sdk_bindings; } - - pub mod query_contested_documents_vote_state { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod query_contested_documents_storage { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod query_documents_with_flags { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod primary_key_tree_type { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "fixtures-and-mocks"))] - pub mod insert_contested { - use crate as dash_sdk_bindings; - - pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings; } - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings; } - - pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings; } - - pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings; } - - pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings; } - - pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings; } - - pub mod add_contested_document { use crate as dash_sdk_bindings; } - - pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod estimation_costs { - use crate as dash_sdk_bindings; - - pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings; } - - pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings; } - - pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - pub mod prove_document_history { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "fixtures-and-mocks"))] - pub mod update { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod update_document_for_contract { - use crate as dash_sdk_bindings; - } - - pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings; } - - pub mod internal { - use crate as dash_sdk_bindings; - - pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings; } - - pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod update_document_for_contract_id { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod add_update_multiple_documents_operations { - use crate as dash_sdk_bindings; - } - } - - #[cfg(any(feature = "server", feature = "fixtures-and-mocks"))] - pub mod get_fetch { - use crate as dash_sdk_bindings; - - pub mod fetch_document_history { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod delete { - use crate as dash_sdk_bindings; - - pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings; } - - pub mod internal { - use crate as dash_sdk_bindings; - - pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings; } - } - - pub mod delete_document_for_contract { use crate as dash_sdk_bindings; } - - pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings; } - - pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings; } - - pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings; } - - pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings; } - - pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings; } - - pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings; } - - pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings; } - - pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "fixtures-and-mocks"))] - pub mod insert { - use crate as dash_sdk_bindings; - - pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings; } - - pub mod add_document { use crate as dash_sdk_bindings; } - - pub mod add_document_for_contract { use crate as dash_sdk_bindings; } - - pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings; } - - pub mod add_document_to_primary_storage { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings; } - - pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings; } - - pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod saved_block_transactions { - use crate as dash_sdk_bindings; - - pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings; } - - pub mod store_address_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod compact_address_balances { use crate as dash_sdk_bindings; } - - pub mod fetch_compacted_address_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_address_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod system { - use crate as dash_sdk_bindings; - - pub mod fetch_elements { use crate as dash_sdk_bindings; } - - pub mod protocol_version { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - pub mod genesis_time { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod estimation_costs { - use crate as dash_sdk_bindings; - - pub mod for_total_system_credits_update { use crate as dash_sdk_bindings; } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod address_funds { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod estimated_costs { - use crate as dash_sdk_bindings; - - pub mod for_address_balance_update { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - pub mod prove_address_funds_branch_query { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_address_funds_trunk_query { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_balance_and_nonce { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_balances_with_nonces { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod set_balance_to_address { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod remove_balance_from_address { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod add_balance_to_address { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch { - use crate as dash_sdk_bindings; - - pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings; } - - pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings; } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod shielded { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod read_total_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod insert_nullifiers { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod paths { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod record_anchor_if_changed { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod update_total_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod has_nullifier { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod has_anchor { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prune_anchors { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod insert_note { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod notes_count { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod shared { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod shared_estimation_costs { - use crate as dash_sdk_bindings; - - pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings; } - - pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings; } - - pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings; } - - pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings; } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod tokens { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod unfreeze { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod transfer { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod apply_status { - use crate as dash_sdk_bindings; - } - - pub mod paths { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - pub mod mint { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod system { - use crate as dash_sdk_bindings; - - pub mod prove_token_total_supply_and_aggregated_identity_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod create_token_trees { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_token_total_supply { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod remove_from_token_total_supply { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod add_to_token_total_supply { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_token_total_aggregated_identity_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod freeze { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod add_transaction_history_operations { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod burn { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod mint_many { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod direct_purchase { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod fetch_tokens_direct_purchase_price { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch_token_direct_purchase_price { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod set_direct_purchase_price { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod prove_tokens_direct_purchase_price { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod calculate_total_tokens_balance { - use crate as dash_sdk_bindings; - } - - pub mod balance { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod remove_from_identity_token_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove_identity_token_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod fetch_identity_token_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod fetch_identity_token_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod update { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod fetch_identities_token_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod add_to_previous_token_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - #[cfg(feature = "server")] - pub mod prove_identities_token_balances { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod contract_info { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod fetch_token_contract_info { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod prove_token_contract_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod distribution { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod mark_pre_programmed_release_as_distributed { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - pub mod pre_programmed_distributions { use crate as dash_sdk_bindings; } - - pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod add_perpetual_distribution { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch { - use crate as dash_sdk_bindings; - - pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings; } - - pub mod pre_programmed_distributions { use crate as dash_sdk_bindings; } - - pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod mark_perpetual_release_as_distributed { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod add_pre_programmed_distribution { - use crate as dash_sdk_bindings; - } - } - - pub mod info { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod fetch_identity_token_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove_identity_token_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod fetch_identities_token_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove_identities_token_infos { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod queries { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - pub mod fetch_identity_token_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod status { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod prove_token_statuses { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod fetch_token_statuses { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod fetch_token_status { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod estimated_costs { - use crate as dash_sdk_bindings; - - pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings; } - - pub mod for_token_total_supply { use crate as dash_sdk_bindings; } - - pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings; } - - pub mod for_token_status_infos { use crate as dash_sdk_bindings; } - - pub mod for_token_contract_infos { use crate as dash_sdk_bindings; } - - pub mod for_token_identity_infos { use crate as dash_sdk_bindings; } - - pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings; } - - pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings; } - - pub mod for_token_balances { use crate as dash_sdk_bindings; } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod identity { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod estimation_costs { - use crate as dash_sdk_bindings; - - pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings; } - - pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings; } - - pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings; } - - pub mod for_balances { use crate as dash_sdk_bindings; } - - pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings; } - - pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings; } - - pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings; } - - pub mod for_negative_credit { use crate as dash_sdk_bindings; } - - pub mod for_update_revision { use crate as dash_sdk_bindings; } - - pub mod for_identity_contract_info { use crate as dash_sdk_bindings; } - - pub mod for_update_nonce { use crate as dash_sdk_bindings; } - - pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod fetch { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod full_identity { - use crate as dash_sdk_bindings; - - pub mod fetch_full_identities { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod fetch_full_identity { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod queries { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod balance { - use crate as dash_sdk_bindings; - - pub mod fetch_identity_balance { use crate as dash_sdk_bindings; } - - pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - pub mod prove_full_identities_by_unique_public_key_hashes { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_full_identity { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings; } - - pub mod prove_full_identities { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_identity_id_by_unique_public_key_hash { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_identity_ids_by_unique_public_key_hashes { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_full_identity_by_unique_public_key_hash { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod prove_full_identity_by_non_unique_public_key_hash { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod contract_keys { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod revision { - use crate as dash_sdk_bindings; - - pub mod fetch_identity_revision { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod partial_identity { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings; } - - pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings; } - - pub mod fetch_identity_keys { use crate as dash_sdk_bindings; } - - pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings; } - - pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod nonce { - use crate as dash_sdk_bindings; - - pub mod prove_identity_nonce { use crate as dash_sdk_bindings; } - - pub mod fetch_identity_nonce { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod fetch_by_public_key_hashes { - use crate as dash_sdk_bindings; - - pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings; } - - pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings; } - - pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings; } - - pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings; } - - pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings; } - - pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings; } - - pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings; } - - pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings; } - - pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings; } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod contract_info { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod keys { - use crate as dash_sdk_bindings; - - pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings; } - - pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod identity_contract_nonce { - use crate as dash_sdk_bindings; - - pub mod merge_identity_contract_nonce { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove_identity_contract_nonce { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod fetch_identity_contract_nonce { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - - #[cfg(feature = "server")] - pub mod insert { - use crate as dash_sdk_bindings; - - pub mod add_new_identity { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod update { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod structs { - use crate as dash_sdk_bindings; - - pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings; } - - pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings; } - } - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod disable_identity_keys { use crate as dash_sdk_bindings; } - - pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings; } - - pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings; } - - pub mod merge_identity_nonce { use crate as dash_sdk_bindings; } - - pub mod remove_from_identity_balance { use crate as dash_sdk_bindings; } - - pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings; } - - pub mod add_to_identity_balance { use crate as dash_sdk_bindings; } - - pub mod update_identity_revision { use crate as dash_sdk_bindings; } - - pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings; } - - pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings; } - - pub mod re_enable_identity_keys { use crate as dash_sdk_bindings; } - - pub mod add_to_previous_balance { use crate as dash_sdk_bindings; } - } - - pub mod operations { - use crate as dash_sdk_bindings; - - pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings; } - - pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings; } - - pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings; } - - pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings; } - - pub mod update_identity_balance_operation { use crate as dash_sdk_bindings; } - - pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings; } - - pub mod update_identity_revision_operation { use crate as dash_sdk_bindings; } - - pub mod merge_identity_nonce_operations { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod key { - use crate as dash_sdk_bindings; - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod fetch { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod fetch_all_identity_keys { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch_all_current_identity_keys { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch_identity_keys { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch_identities_all_keys { - use crate as dash_sdk_bindings; - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod queries { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod insert_key_hash_identity_reference { - use crate as dash_sdk_bindings; - - pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings; } - - pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings; } - - pub mod estimation_costs { - use crate as dash_sdk_bindings; - - pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings; } - - pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings; } - } - - pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings; } - - pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - pub mod prove_identity_keys { use crate as dash_sdk_bindings; } - - pub mod prove_identities_all_keys { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod insert { - use crate as dash_sdk_bindings; - - pub mod insert_key_searchable_references { use crate as dash_sdk_bindings; } - - pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings; } - - pub mod insert_new_unique_key { use crate as dash_sdk_bindings; } - - pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings; } - - pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings; } - - pub mod replace_key_in_storage { use crate as dash_sdk_bindings; } - - pub mod insert_key_to_storage { use crate as dash_sdk_bindings; } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod balance { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod update { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - #[cfg(all(test, any(feature = "server", feature = "verify")))] - pub mod tests { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod withdrawals { - use crate as dash_sdk_bindings; - - pub mod document { - use crate as dash_sdk_bindings; - - pub mod find_withdrawal_documents_by_status_and_transaction_indices { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_oldest_withdrawal_documents_by_status { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod transaction { - use crate as dash_sdk_bindings; - - pub mod index { - use crate as dash_sdk_bindings; - - pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings; } - - pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings; } - } - - pub mod queue { - use crate as dash_sdk_bindings; - - pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings; } - - pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings; } - - pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings; } - - pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings; } - } - } - - pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod initialization { - use crate as dash_sdk_bindings; - - pub mod genesis_core_height { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod prefunded_specialized_balances { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod empty_prefunded_specialized_balance_operations { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod estimation_costs { - use crate as dash_sdk_bindings; - - pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod add_prefunded_specialized_balance { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod deduct_from_prefunded_specialized_balance_operations { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod v1 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod empty_prefunded_specialized_balance { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod add_prefunded_specialized_balance_operations { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod v1 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod fetch { - use crate as dash_sdk_bindings; - - pub mod single_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod prove { - use crate as dash_sdk_bindings; - - pub mod single_balance { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod credit_pools { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod operations { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod pending_epoch_refunds { - use crate as dash_sdk_bindings; - - pub mod operations { - use crate as dash_sdk_bindings; - - pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings; } - } - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod fetch_and_add_pending_epoch_refunds_to_collection { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings; } - - pub mod add_delete_pending_epoch_refunds_except_specified { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - - #[cfg(feature = "server")] - pub mod storage_fee_distribution_pool { - use crate as dash_sdk_bindings; - - pub mod get_storage_fees_from_distribution_pool { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - } - - #[cfg(feature = "server")] - pub mod unpaid_epoch { - use crate as dash_sdk_bindings; - - pub mod get_unpaid_epoch_index { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod epochs { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod start_block { - use crate as dash_sdk_bindings; - - pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings; } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings; } - - pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod prove_epochs_infos { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod get_finalized_epoch_info { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod has_epoch_tree_exists { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod get_epochs_protocol_versions { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod get_epochs_infos { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod credit_distribution_pools { - use crate as dash_sdk_bindings; - - pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings; } - - pub mod get_epoch_total_credits_for_distribution { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod get_epoch_storage_credits_for_distribution { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod get_epoch_processing_credits_for_distribution { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod get_epoch_fee_multiplier { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings; } - - pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "server")] - pub mod start_time { - use crate as dash_sdk_bindings; - - pub mod get_epoch_start_time { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - } - - #[cfg(feature = "server")] - pub mod prove_finalized_epoch_infos { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod operations_factory { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod proposers { - use crate as dash_sdk_bindings; - - pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings; } - - pub mod prove_epoch_proposers { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod fetch_epoch_proposers { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod get_epochs_proposer_block_count { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "server")] - pub mod get_epoch_protocol_version { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod protocol_upgrade { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod clear_version_information { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch_validator_version_votes { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch_proved_validator_version_votes { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch_versions_with_counter { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod update_validator_proposed_app_version { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod fetch_proved_versions_with_counter { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod remove_validators_proposed_app_versions { - use crate as dash_sdk_bindings; - } - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod query { - use crate as dash_sdk_bindings; - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod conditions { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum drive_query_conditions_WhereOperator { Equal, GreaterThan, GreaterThanOrEquals, LessThan, LessThanOrEquals, Between, BetweenExcludeBounds, BetweenExcludeLeft, BetweenExcludeRight, In, StartsWith } - - impl ferment::FFIConversionFrom for drive_query_conditions_WhereOperator { - unsafe fn ffi_from_const(ffi: *const drive_query_conditions_WhereOperator) -> drive::query::conditions::WhereOperator { - let ffi_ref = &*ffi; - match ffi_ref { - drive_query_conditions_WhereOperator::Equal => drive::query::conditions::WhereOperator::Equal, - drive_query_conditions_WhereOperator::GreaterThan => drive::query::conditions::WhereOperator::GreaterThan, - drive_query_conditions_WhereOperator::GreaterThanOrEquals => drive::query::conditions::WhereOperator::GreaterThanOrEquals, - drive_query_conditions_WhereOperator::LessThan => drive::query::conditions::WhereOperator::LessThan, - drive_query_conditions_WhereOperator::LessThanOrEquals => drive::query::conditions::WhereOperator::LessThanOrEquals, - drive_query_conditions_WhereOperator::Between => drive::query::conditions::WhereOperator::Between, - drive_query_conditions_WhereOperator::BetweenExcludeBounds => drive::query::conditions::WhereOperator::BetweenExcludeBounds, - drive_query_conditions_WhereOperator::BetweenExcludeLeft => drive::query::conditions::WhereOperator::BetweenExcludeLeft, - drive_query_conditions_WhereOperator::BetweenExcludeRight => drive::query::conditions::WhereOperator::BetweenExcludeRight, - drive_query_conditions_WhereOperator::In => drive::query::conditions::WhereOperator::In, - drive_query_conditions_WhereOperator::StartsWith => drive::query::conditions::WhereOperator::StartsWith - } - } - } - - impl ferment::FFIConversionTo for drive_query_conditions_WhereOperator { - unsafe fn ffi_to_const(obj: drive::query::conditions::WhereOperator) -> *const drive_query_conditions_WhereOperator { - ferment::boxed(match obj { - drive::query::conditions::WhereOperator::Equal => drive_query_conditions_WhereOperator::Equal, - drive::query::conditions::WhereOperator::GreaterThan => drive_query_conditions_WhereOperator::GreaterThan, - drive::query::conditions::WhereOperator::GreaterThanOrEquals => drive_query_conditions_WhereOperator::GreaterThanOrEquals, - drive::query::conditions::WhereOperator::LessThan => drive_query_conditions_WhereOperator::LessThan, - drive::query::conditions::WhereOperator::LessThanOrEquals => drive_query_conditions_WhereOperator::LessThanOrEquals, - drive::query::conditions::WhereOperator::Between => drive_query_conditions_WhereOperator::Between, - drive::query::conditions::WhereOperator::BetweenExcludeBounds => drive_query_conditions_WhereOperator::BetweenExcludeBounds, - drive::query::conditions::WhereOperator::BetweenExcludeLeft => drive_query_conditions_WhereOperator::BetweenExcludeLeft, - drive::query::conditions::WhereOperator::BetweenExcludeRight => drive_query_conditions_WhereOperator::BetweenExcludeRight, - drive::query::conditions::WhereOperator::In => drive_query_conditions_WhereOperator::In, - drive::query::conditions::WhereOperator::StartsWith => drive_query_conditions_WhereOperator::StartsWith, - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for drive_query_conditions_WhereOperator { - fn drop(&mut self) { - unsafe { - match self { - drive_query_conditions_WhereOperator::Equal => {} - drive_query_conditions_WhereOperator::GreaterThan => {} - drive_query_conditions_WhereOperator::GreaterThanOrEquals => {} - drive_query_conditions_WhereOperator::LessThan => {} - drive_query_conditions_WhereOperator::LessThanOrEquals => {} - drive_query_conditions_WhereOperator::Between => {} - drive_query_conditions_WhereOperator::BetweenExcludeBounds => {} - drive_query_conditions_WhereOperator::BetweenExcludeLeft => {} - drive_query_conditions_WhereOperator::BetweenExcludeRight => {} - drive_query_conditions_WhereOperator::In => {} - drive_query_conditions_WhereOperator::StartsWith => {} - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::Equal {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::GreaterThan {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::GreaterThanOrEquals {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::LessThan {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::LessThanOrEquals {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::Between {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::BetweenExcludeBounds {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::BetweenExcludeLeft {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::BetweenExcludeRight {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::In {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor() -> *mut drive_query_conditions_WhereOperator { ferment::boxed(drive_query_conditions_WhereOperator::StartsWith {}) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy<>(ffi: *mut drive_query_conditions_WhereOperator) { ferment::unbox_any(ffi); } - - #[doc = "FFI-representation of the [`WhereClause`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_query_conditions_WhereClause { - pub field: *mut std::os::raw::c_char, - pub operator: *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereOperator, - pub value: *mut crate::fermented::types::platform_value::platform_value_Value, - } - - impl ferment::FFIConversionFrom for drive_query_conditions_WhereClause { - unsafe fn ffi_from_const(ffi: *const drive_query_conditions_WhereClause) -> drive::query::conditions::WhereClause { - let ffi_ref = &*ffi; - drive::query::conditions::WhereClause { field: >::ffi_from(ffi_ref.field), operator: >::ffi_from(ffi_ref.operator), value: >::ffi_from(ffi_ref.value) } - } - } - - impl ferment::FFIConversionTo for drive_query_conditions_WhereClause { unsafe fn ffi_to_const(obj: drive::query::conditions::WhereClause) -> *const drive_query_conditions_WhereClause { ferment::boxed(drive_query_conditions_WhereClause { field: >::ffi_to(obj.field), operator: >::ffi_to(obj.operator), value: >::ffi_to(obj.value) }) } } - - impl Drop for drive_query_conditions_WhereClause { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_string(ffi_ref.field); - ferment::unbox_any(ffi_ref.operator); - ferment::unbox_any(ffi_ref.value); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor<>(field: *mut std::os::raw::c_char, operator: *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereOperator, value: *mut crate::fermented::types::platform_value::platform_value_Value) -> *mut drive_query_conditions_WhereClause { ferment::boxed(drive_query_conditions_WhereClause { field, operator, value }) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy<>(ffi: *mut drive_query_conditions_WhereClause) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field<>(obj: *const drive_query_conditions_WhereClause) -> *mut std::os::raw::c_char { (*obj).field } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator<>(obj: *const drive_query_conditions_WhereClause) -> *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereOperator { (*obj).operator } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value<>(obj: *const drive_query_conditions_WhereClause) -> *mut crate::fermented::types::platform_value::platform_value_Value { (*obj).value } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field<>(obj: *const drive_query_conditions_WhereClause) -> *mut std::os::raw::c_char { (*obj).field } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator<>(obj: *const drive_query_conditions_WhereClause) -> *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereOperator { (*obj).operator } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value<>(obj: *const drive_query_conditions_WhereClause) -> *mut crate::fermented::types::platform_value::platform_value_Value { (*obj).value } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod vote_polls_by_end_date_query { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod vote_poll_contestant_votes_query { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod drive_document_average_query { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod drive_dispatcher { - use crate as dash_sdk_bindings; - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod drive_document_sum_query { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod mode_detection { - use crate as dash_sdk_bindings; - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod v0 { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod executors { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod path_query { - use crate as dash_sdk_bindings; - } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod vote_poll_vote_state_query { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod drive_document_count_and_sum_query { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - pub mod executors { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "server")] - pub mod test_index { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod ordering { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`OrderClause`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_query_ordering_OrderClause { - pub field: *mut std::os::raw::c_char, - pub ascending: bool, - } - - impl ferment::FFIConversionFrom for drive_query_ordering_OrderClause { - unsafe fn ffi_from_const(ffi: *const drive_query_ordering_OrderClause) -> drive::query::ordering::OrderClause { - let ffi_ref = &*ffi; - drive::query::ordering::OrderClause { field: >::ffi_from(ffi_ref.field), ascending: ffi_ref.ascending } - } - } - - impl ferment::FFIConversionTo for drive_query_ordering_OrderClause { unsafe fn ffi_to_const(obj: drive::query::ordering::OrderClause) -> *const drive_query_ordering_OrderClause { ferment::boxed(drive_query_ordering_OrderClause { field: >::ffi_to(obj.field), ascending: obj.ascending }) } } - - impl Drop for drive_query_ordering_OrderClause { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_string(ffi_ref.field); - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor<>(field: *mut std::os::raw::c_char, ascending: bool) -> *mut drive_query_ordering_OrderClause { ferment::boxed(drive_query_ordering_OrderClause { field, ascending }) } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy<>(ffi: *mut drive_query_ordering_OrderClause) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field<>(obj: *const drive_query_ordering_OrderClause) -> *mut std::os::raw::c_char { (*obj).field } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending<>(obj: *const drive_query_ordering_OrderClause) -> bool { (*obj).ascending } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field<>(obj: *const drive_query_ordering_OrderClause) -> *mut std::os::raw::c_char { (*obj).field } - - #[no_mangle] - pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending<>(obj: *const drive_query_ordering_OrderClause) -> bool { (*obj).ascending } - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod contested_resource_votes_given_by_identity_query { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod vote_polls_by_document_type_query { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod filter { - use crate as dash_sdk_bindings; - } - - #[cfg(any(feature = "server", feature = "verify"))] - pub mod drive_document_count_query { - use crate as dash_sdk_bindings; - - #[cfg(feature = "server")] - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "server")] - pub mod executors { - use crate as dash_sdk_bindings; - } - } - } - } - - pub mod dapi_grpc { - use crate as dash_sdk_bindings; - - pub mod mock { use crate as dash_sdk_bindings; } - - #[cfg(feature = "drive")] - pub mod drive { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "platform")] - pub mod platform { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "core")] - pub mod core { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "serde")] - pub mod deserialization { - use crate as dash_sdk_bindings; - } - } - - pub mod platform_mobile { - use crate as dash_sdk_bindings; - - pub mod fetch_document { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string(document: *mut crate::fermented::types::dpp::document::dpp_document_Document) -> *mut std::os::raw::c_char { - let obj = platform_mobile::fetch_document::document_to_string(>::ffi_from(document)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, bytes: *mut crate::fermented::generics::Vec_u8, data_contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, document_type: *mut std::os::raw::c_char) -> *mut crate::fermented::generics::Result_ok_dpp_document_Document_err_String { - let obj = platform_mobile::fetch_document::deserialize_document_sdk(rust_sdk, >>::ffi_from(bytes), >::ffi_from(data_contract_id), >::ffi_from(document_type)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, data_contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, document_type: *mut std::os::raw::c_char, where_clauses: *mut crate::fermented::generics::Vec_drive_query_conditions_WhereClause, order_clauses: *mut crate::fermented::generics::Vec_drive_query_ordering_OrderClause, limit: u32, start: *mut crate::fermented::types::platform_mobile::fetch_document::platform_mobile_fetch_document_StartPoint) -> *mut crate::fermented::generics::Result_ok_Vec_dpp_document_Document_err_String { - let obj = platform_mobile::fetch_document::fetch_documents_with_query_and_sdk(rust_sdk, >::ffi_from(data_contract_id), >::ffi_from(document_type), >>::ffi_from(where_clauses), >>::ffi_from(order_clauses), limit, >::ffi_from_opt(start)); - , String>>>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum platform_mobile_fetch_document_StartPoint { StartAfter(*mut crate::fermented::generics::Vec_u8), StartAt(*mut crate::fermented::generics::Vec_u8) } - - impl ferment::FFIConversionFrom for platform_mobile_fetch_document_StartPoint { - unsafe fn ffi_from_const(ffi: *const platform_mobile_fetch_document_StartPoint) -> platform_mobile::fetch_document::StartPoint { - let ffi_ref = &*ffi; - match ffi_ref { - platform_mobile_fetch_document_StartPoint::StartAfter(o_0) => platform_mobile::fetch_document::StartPoint::StartAfter(>>::ffi_from(*o_0)), - platform_mobile_fetch_document_StartPoint::StartAt(o_0) => platform_mobile::fetch_document::StartPoint::StartAt(>>::ffi_from(*o_0)) - } - } - } - - impl ferment::FFIConversionTo for platform_mobile_fetch_document_StartPoint { - unsafe fn ffi_to_const(obj: platform_mobile::fetch_document::StartPoint) -> *const platform_mobile_fetch_document_StartPoint { - ferment::boxed(match obj { - platform_mobile::fetch_document::StartPoint::StartAfter(o_0) => platform_mobile_fetch_document_StartPoint::StartAfter(>>::ffi_to(o_0)), - platform_mobile::fetch_document::StartPoint::StartAt(o_0) => platform_mobile_fetch_document_StartPoint::StartAt(>>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for platform_mobile_fetch_document_StartPoint { - fn drop(&mut self) { - unsafe { - match self { - platform_mobile_fetch_document_StartPoint::StartAfter(o_0) => { ferment::unbox_any(*o_0); } - platform_mobile_fetch_document_StartPoint::StartAt(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor(o_o_0: *mut crate::fermented::generics::Vec_u8) -> *mut platform_mobile_fetch_document_StartPoint { ferment::boxed(platform_mobile_fetch_document_StartPoint::StartAfter(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor(o_o_0: *mut crate::fermented::generics::Vec_u8) -> *mut platform_mobile_fetch_document_StartPoint { ferment::boxed(platform_mobile_fetch_document_StartPoint::StartAt(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy<>(ffi: *mut platform_mobile_fetch_document_StartPoint) { ferment::unbox_any(ffi); } - } - - pub mod fetch_identity { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, key_hash: *mut crate::fermented::generics::Arr_u8_20) -> *mut crate::fermented::generics::Result_ok_dpp_identity_identity_Identity_err_String { - let obj = platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk(rust_sdk, >::ffi_from(key_hash)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, identifier: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::generics::Result_ok_u64_err_String { - let obj = platform_mobile::fetch_identity::fetch_identity_balance_with_sdk(rust_sdk, >::ffi_from(identifier)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, identifier: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::generics::Result_ok_Option_dpp_identity_identity_Identity_err_String { - let obj = platform_mobile::fetch_identity::fetch_identity_with_sdk(rust_sdk, >::ffi_from(identifier)); - , String>>>::ffi_to(obj) - } - } - - pub mod core { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, txid: *mut crate::fermented::generics::Arr_u8_32) -> *mut crate::fermented::generics::Result_ok_Vec_u8_err_String { - let obj = platform_mobile::core::get_transaction_sdk(rust_sdk, >::ffi_from(txid)); - , String>>>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_core_get_transaction(txid: *mut crate::fermented::generics::Arr_u8_32, quorum_public_key_callback: u64, data_contract_callback: u64) -> *mut crate::fermented::generics::Result_ok_Vec_u8_err_String { - let obj = platform_mobile::core::get_transaction(>::ffi_from(txid), quorum_public_key_callback, data_contract_callback); - , String>>>::ffi_to(obj) - } - } - - pub mod identity { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone(identity: *mut crate::fermented::types::dpp::identity::v0::dpp_identity_v0_IdentityV0) -> *mut crate::fermented::types::dpp::identity::v0::dpp_identity_v0_IdentityV0 { - let obj = platform_mobile::identity::IdentityV0_clone(>::ffi_from(identity)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_get_identity2(identifier: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity { - let obj = platform_mobile::identity::get_identity2(>::ffi_from(identifier)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_Identity_clone(identity: *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity) -> *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity { - let obj = platform_mobile::identity::Identity_clone(>::ffi_from(identity)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone(identity_public_key: *mut crate::fermented::types::dpp::identity::identity_public_key::v0::dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::v0::dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { - let obj = platform_mobile::identity::IdentityPublicKeyV0_clone(>::ffi_from(identity_public_key)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone(public_keys: *mut crate::fermented::generics::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> *mut crate::fermented::generics::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { - let obj = platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone(>>::ffi_from(public_keys)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone(identifier: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { - let obj = platform_mobile::identity::Identifier_clone(>::ffi_from(identifier)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone(identity_public_key: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey { - let obj = platform_mobile::identity::IdentityPublicKey_clone(>::ffi_from(identity_public_key)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds(identifier: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, contract_identifier: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity { - let obj = platform_mobile::identity::get_identity_contract_bounds(>::ffi_from(identifier), >::ffi_from_opt(contract_identifier)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity(id: *mut crate::fermented::generics::Arr_u8_32) -> *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity { - let obj = platform_mobile::identity::create_basic_identity(>::ffi_from(id)); - >::ffi_to(obj) - } - } - - pub mod config { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_config_testnet_address_list() -> *mut crate::fermented::generics::Vec_String { - let obj = platform_mobile::config::testnet_address_list(); - >>::ffi_to(obj) - } - } - - pub mod clone { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone(time: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { - let obj = platform_mobile::clone::TimestampMillis_clone(>::ffi_from(time)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone(document: *mut crate::fermented::types::dpp::document::v0::dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::document::v0::dpp_document_v0_DocumentV0 { - let obj = platform_mobile::clone::DocumentV0_clone(>::ffi_from(document)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone(o: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Contenders) -> *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Contenders { - let obj = platform_mobile::clone::Contenders_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone(o: *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereClause) -> *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereClause { - let obj = platform_mobile::clone::WhereClause_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone(o: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ContestedResource) -> *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ContestedResource { - let obj = platform_mobile::clone::ContestedResource_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone(slice: *mut crate::fermented::generics::Arr_u8_20) -> *mut crate::fermented::generics::Arr_u8_20 { - let obj = platform_mobile::clone::Arr_u8_20_clone(>::ffi_from(slice)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Vote_clone(o: *mut crate::fermented::types::dpp::voting::votes::dpp_voting_votes_Vote) -> *mut crate::fermented::types::dpp::voting::votes::dpp_voting_votes_Vote { - let obj = platform_mobile::clone::Vote_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Value_clone(value: *mut crate::fermented::types::platform_value::platform_value_Value) -> *mut crate::fermented::types::platform_value::platform_value_Value { - let obj = platform_mobile::clone::Value_clone(>::ffi_from(value)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone(value_map: *mut crate::fermented::types::platform_value::value_map::platform_value_value_map_ValueMap) -> *mut crate::fermented::types::platform_value::value_map::platform_value_value_map_ValueMap { - let obj = platform_mobile::clone::ValueMap_clone(>::ffi_from(value_map)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone(o: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_VotePollsGroupedByTimestamp { - let obj = platform_mobile::clone::VotePollsGroupedByTimestamp_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone(vec: *mut crate::fermented::generics::Vec_u8) -> *mut crate::fermented::generics::Vec_u8 { - let obj = platform_mobile::clone::Vec_u8_clone(>>::ffi_from(vec)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone(o: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ContestedResources) -> *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ContestedResources { - let obj = platform_mobile::clone::ContestedResources_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Voters_clone(o: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Voters) -> *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Voters { - let obj = platform_mobile::clone::Voters_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Revision_clone(revision: *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision { - let obj = platform_mobile::clone::Revision_clone(>::ffi_from(revision)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone(o: *mut crate::fermented::types::dpp::voting::contender_structs::contender::dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> *mut crate::fermented::types::dpp::voting::contender_structs::contender::dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { - let obj = platform_mobile::clone::ContenderWithSerializedDocument_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Voter_clone(o: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Voter) -> *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Voter { - let obj = platform_mobile::clone::Voter_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone(o: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ResourceVotesByIdentity) -> *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ResourceVotesByIdentity { - let obj = platform_mobile::clone::ResourceVotesByIdentity_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone(height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { - let obj = platform_mobile::clone::BlockHeight_clone(>::ffi_from(height)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone(height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { - let obj = platform_mobile::clone::CoreBlockHeight_clone(>::ffi_from(height)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone(o: *mut crate::fermented::types::dpp::voting::votes::resource_vote::dpp_voting_votes_resource_vote_ResourceVote) -> *mut crate::fermented::types::dpp::voting::votes::resource_vote::dpp_voting_votes_resource_vote_ResourceVote { - let obj = platform_mobile::clone::ResourceVote_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone(o: *mut crate::fermented::generics::std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> *mut crate::fermented::generics::std_collections_BTreeSet_drive_proof_verifier_types_Voter { - let obj = platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone(>>::ffi_from(o)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone(o: *mut crate::fermented::types::dpp::voting::vote_polls::contested_document_resource_vote_poll::dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut crate::fermented::types::dpp::voting::vote_polls::contested_document_resource_vote_poll::dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { - let obj = platform_mobile::clone::ContestedDocumentResourceVotePoll_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone(id: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID { - let obj = platform_mobile::clone::KeyID_clone(>::ffi_from(id)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone(value_vec: *mut crate::fermented::generics::Vec_platform_value_Value) -> *mut crate::fermented::generics::Vec_platform_value_Value { - let obj = platform_mobile::clone::Vec_Value_clone(>>::ffi_from(value_vec)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone(o: *mut crate::fermented::types::dpp::voting::vote_choices::resource_vote_choice::dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> *mut crate::fermented::types::dpp::voting::vote_choices::resource_vote_choice::dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { - let obj = platform_mobile::clone::ResourceVoteChoice_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Document_clone(document: *mut crate::fermented::types::dpp::document::dpp_document_Document) -> *mut crate::fermented::types::dpp::document::dpp_document_Document { - let obj = platform_mobile::clone::Document_clone(>::ffi_from(document)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone(slice: *mut crate::fermented::generics::Arr_u8_36) -> *mut crate::fermented::generics::Arr_u8_36 { - let obj = platform_mobile::clone::Arr_u8_36_clone(>::ffi_from(slice)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone(o: *mut crate::fermented::types::dpp::voting::contender_structs::contender::v0::dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> *mut crate::fermented::types::dpp::voting::contender_structs::contender::v0::dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { - let obj = platform_mobile::clone::ContenderWithSerializedDocumentV0_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone(o: *mut crate::fermented::generics::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> *mut crate::fermented::generics::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { - let obj = platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone()>>::ffi_from(o)); - )>>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone(o: *mut crate::fermented::types::platform_value::platform_value_Hash256) -> *mut crate::fermented::types::platform_value::platform_value_Hash256 { - let obj = platform_mobile::clone::Hash256_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone(time: *mut crate::fermented::types::dpp::prelude::dpp_prelude_TimestampMillis) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_TimestampMillis { - let obj = platform_mobile::clone::prelude_TimestampMillis_clone(>::ffi_from(time)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone(slice: *mut crate::fermented::generics::Arr_u8_32) -> *mut crate::fermented::generics::Arr_u8_32 { - let obj = platform_mobile::clone::Arr_u8_32_clone(>::ffi_from(slice)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone(o: *mut crate::fermented::types::dpp::voting::vote_polls::dpp_voting_vote_polls_VotePoll) -> *mut crate::fermented::types::dpp::voting::vote_polls::dpp_voting_vote_polls_VotePoll { - let obj = platform_mobile::clone::VotePoll_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone(o: *mut crate::fermented::types::drive::query::ordering::drive_query_ordering_OrderClause) -> *mut crate::fermented::types::drive::query::ordering::drive_query_ordering_OrderClause { - let obj = platform_mobile::clone::OrderClause_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone(info: *mut crate::fermented::types::platform_mobile::state_transition::platform_mobile_state_transition_StateTransitionInfo) -> *mut crate::fermented::types::platform_mobile::state_transition::platform_mobile_state_transition_StateTransitionInfo { - let obj = platform_mobile::clone::StateTransitionInfo_clone(>::ffi_from(info)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone(o: *mut crate::fermented::types::dpp::voting::votes::resource_vote::v0::dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> *mut crate::fermented::types::dpp::voting::votes::resource_vote::v0::dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { - let obj = platform_mobile::clone::ResourceVoteV0_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone(map: *mut crate::fermented::generics::std_collections_Map_keys_String_values_platform_value_Value) -> *mut crate::fermented::generics::std_collections_Map_keys_String_values_platform_value_Value { - let obj = platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone(>>::ffi_from(map)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone(o: *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereOperator) -> *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereOperator { - let obj = platform_mobile::clone::WhereOperator_clone(>::ffi_from(o)); - >::ffi_to(obj) - } - } - - pub mod sdk { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk(quorum_public_key_callback: u64, data_contract_callback: u64, is_testnet: bool) -> *mut platform_mobile::sdk::DashSdk { - let obj = platform_mobile::sdk::create_dash_sdk(quorum_public_key_callback, data_contract_callback, is_testnet); - ferment::boxed(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk) { - let obj = platform_mobile::sdk::destroy_dash_sdk(rust_sdk); - ; - } - - #[doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context(context_provider_context: usize, quorum_public_key_callback: u64, data_contract_callback: u64, is_testnet: bool, connect_timeout: usize, timeout: usize, retries: usize) -> *mut platform_mobile::sdk::DashSdk { - let obj = platform_mobile::sdk::create_dash_sdk_with_context(context_provider_context, quorum_public_key_callback, data_contract_callback, is_testnet, connect_timeout, timeout, retries); - ferment::boxed(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode(evonode: *mut std::os::raw::c_char, quorum_public_key_callback: u64, data_contract_callback: u64, is_testnet: bool) -> *mut platform_mobile::sdk::DashSdk { - let obj = platform_mobile::sdk::create_dash_sdk_using_single_evonode(>::ffi_from(evonode), quorum_public_key_callback, data_contract_callback, is_testnet); - ferment::boxed(obj) - } - } - - pub mod voting { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls(rust_sdk: *mut platform_mobile::sdk::DashSdk, start_time: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, start_time_included: bool, end_time: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, end_time_included: bool, limit: u16, offset: u16, order_ascending: bool) -> *mut crate::fermented::generics::Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { - let obj = platform_mobile::voting::get_vote_polls(rust_sdk, >::ffi_from(start_time), start_time_included, >::ffi_from(end_time), end_time_included, limit, offset, order_ascending); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_voting_get_votes(rust_sdk: *mut platform_mobile::sdk::DashSdk, data_contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::generics::Result_ok_Option_dpp_voting_votes_Vote_err_String { - let obj = platform_mobile::voting::get_votes(rust_sdk, >::ffi_from(data_contract_id)); - , String>>>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders(rust_sdk: *mut platform_mobile::sdk::DashSdk, index_name: *mut std::os::raw::c_char, index_values: *mut crate::fermented::generics::Vec_platform_value_Value, document_type_name: *mut std::os::raw::c_char, contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::generics::Result_ok_drive_proof_verifier_types_Contenders_err_String { - let obj = platform_mobile::voting::get_vote_contenders(rust_sdk, >::ffi_from(index_name), >>::ffi_from(index_values), >::ffi_from(document_type_name), >::ffi_from(contract_id)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources(rust_sdk: *mut platform_mobile::sdk::DashSdk, document_type_name: *mut std::os::raw::c_char, data_contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, limit: u16, start_at: *mut crate::fermented::types::platform_value::platform_value_Value, start_at_include: bool) -> *mut crate::fermented::generics::Result_ok_drive_proof_verifier_types_ContestedResources_err_String { - let obj = platform_mobile::voting::get_contested_resources(rust_sdk, >::ffi_from(document_type_name), >::ffi_from(data_contract_id), limit, >::ffi_from_opt(start_at), start_at_include); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform(rust_sdk: *mut platform_mobile::sdk::DashSdk, vote: *mut crate::fermented::types::dpp::voting::votes::dpp_voting_votes_Vote, voter_pro_tx_hash: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, voting_public_key: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey, signer_context: usize, signer_callback: u64) -> *mut crate::fermented::generics::Result_ok_dpp_voting_votes_Vote_err_String { - let obj = platform_mobile::voting::put_vote_to_platform(rust_sdk, >::ffi_from(vote), >::ffi_from(voter_pro_tx_hash), >::ffi_from(voting_public_key), signer_context, signer_callback); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode(rust_sdk: *mut platform_mobile::sdk::DashSdk, masternode_protxhash: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, index_name: *mut std::os::raw::c_char, index_values: *mut crate::fermented::generics::Vec_platform_value_Value, document_type_name: *mut std::os::raw::c_char, contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::generics::Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { - let obj = platform_mobile::voting::get_last_vote_from_masternode(rust_sdk, >::ffi_from(masternode_protxhash), >::ffi_from(index_name), >>::ffi_from(index_values), >::ffi_from(document_type_name), >::ffi_from(contract_id)); - >>::ffi_to(obj) - } - } - - pub mod state_transition { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add(bytes: *mut crate::fermented::generics::Vec_u8) -> *mut crate::fermented::generics::Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { - let obj = platform_mobile::state_transition::identity_update_public_keys_to_add(>>::ffi_from(bytes)); - , String>>>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition(bytes: *mut crate::fermented::generics::Vec_u8) -> *mut crate::fermented::generics::Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { - let obj = platform_mobile::state_transition::deserialize_state_transition(>>::ffi_from(bytes)); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`StateTransitionInfo`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_mobile_state_transition_StateTransitionInfo { - pub transition_type: u8, - pub name: *mut std::os::raw::c_char, - pub owner_id: *mut crate::fermented::generics::Vec_u8, - pub revision: u64, - pub identity_nonce: u64, - } - - impl ferment::FFIConversionFrom for platform_mobile_state_transition_StateTransitionInfo { - unsafe fn ffi_from_const(ffi: *const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile::state_transition::StateTransitionInfo { - let ffi_ref = &*ffi; - platform_mobile::state_transition::StateTransitionInfo { transition_type: ffi_ref.transition_type, name: >::ffi_from(ffi_ref.name), owner_id: >>::ffi_from(ffi_ref.owner_id), revision: ffi_ref.revision, identity_nonce: ffi_ref.identity_nonce } - } - } - - impl ferment::FFIConversionTo for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const(obj: platform_mobile::state_transition::StateTransitionInfo) -> *const platform_mobile_state_transition_StateTransitionInfo { ferment::boxed(platform_mobile_state_transition_StateTransitionInfo { transition_type: obj.transition_type, name: >::ffi_to(obj.name), owner_id: >>::ffi_to(obj.owner_id), revision: obj.revision, identity_nonce: obj.identity_nonce }) } } - - impl Drop for platform_mobile_state_transition_StateTransitionInfo { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - ferment::unbox_string(ffi_ref.name); - ferment::unbox_any(ffi_ref.owner_id); - ; - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor<>(transition_type: u8, name: *mut std::os::raw::c_char, owner_id: *mut crate::fermented::generics::Vec_u8, revision: u64, identity_nonce: u64) -> *mut platform_mobile_state_transition_StateTransitionInfo { ferment::boxed(platform_mobile_state_transition_StateTransitionInfo { transition_type, name, owner_id, revision, identity_nonce }) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy<>(ffi: *mut platform_mobile_state_transition_StateTransitionInfo) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (*obj).transition_type } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> *mut std::os::raw::c_char { (*obj).name } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> *mut crate::fermented::generics::Vec_u8 { (*obj).owner_id } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (*obj).revision } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (*obj).identity_nonce } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (*obj).transition_type } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> *mut std::os::raw::c_char { (*obj).name } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> *mut crate::fermented::generics::Vec_u8 { (*obj).owner_id } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (*obj).revision } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce<>(obj: *const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (*obj).identity_nonce } - } - - pub mod put { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum platform_mobile_put_AssetLockProofFFI { Instant(*mut crate::fermented::types::platform_mobile::put::platform_mobile_put_InstantAssetLockProofFFI), Chain(*mut crate::fermented::types::platform_mobile::put::platform_mobile_put_ChainAssetLockProofFFI) } - - impl ferment::FFIConversionFrom for platform_mobile_put_AssetLockProofFFI { - unsafe fn ffi_from_const(ffi: *const platform_mobile_put_AssetLockProofFFI) -> platform_mobile::put::AssetLockProofFFI { - let ffi_ref = &*ffi; - match ffi_ref { - platform_mobile_put_AssetLockProofFFI::Instant(o_0) => platform_mobile::put::AssetLockProofFFI::Instant(>::ffi_from(*o_0)), - platform_mobile_put_AssetLockProofFFI::Chain(o_0) => platform_mobile::put::AssetLockProofFFI::Chain(>::ffi_from(*o_0)) - } - } - } - - impl ferment::FFIConversionTo for platform_mobile_put_AssetLockProofFFI { - unsafe fn ffi_to_const(obj: platform_mobile::put::AssetLockProofFFI) -> *const platform_mobile_put_AssetLockProofFFI { - ferment::boxed(match obj { - platform_mobile::put::AssetLockProofFFI::Instant(o_0) => platform_mobile_put_AssetLockProofFFI::Instant(>::ffi_to(o_0)), - platform_mobile::put::AssetLockProofFFI::Chain(o_0) => platform_mobile_put_AssetLockProofFFI::Chain(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for platform_mobile_put_AssetLockProofFFI { - fn drop(&mut self) { - unsafe { - match self { - platform_mobile_put_AssetLockProofFFI::Instant(o_0) => { ferment::unbox_any(*o_0); } - platform_mobile_put_AssetLockProofFFI::Chain(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor(o_o_0: *mut crate::fermented::types::platform_mobile::put::platform_mobile_put_InstantAssetLockProofFFI) -> *mut platform_mobile_put_AssetLockProofFFI { ferment::boxed(platform_mobile_put_AssetLockProofFFI::Instant(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor(o_o_0: *mut crate::fermented::types::platform_mobile::put::platform_mobile_put_ChainAssetLockProofFFI) -> *mut platform_mobile_put_AssetLockProofFFI { ferment::boxed(platform_mobile_put_AssetLockProofFFI::Chain(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy<>(ffi: *mut platform_mobile_put_AssetLockProofFFI) { ferment::unbox_any(ffi); } - - #[doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_mobile_put_InstantAssetLockProofFFI { - pub instant_lock: *mut crate::fermented::generics::Vec_u8, - pub transaction: *mut crate::fermented::generics::Vec_u8, - pub output_index: u32, - } - - impl ferment::FFIConversionFrom for platform_mobile_put_InstantAssetLockProofFFI { - unsafe fn ffi_from_const(ffi: *const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile::put::InstantAssetLockProofFFI { - let ffi_ref = &*ffi; - platform_mobile::put::InstantAssetLockProofFFI { instant_lock: >>::ffi_from(ffi_ref.instant_lock), transaction: >>::ffi_from(ffi_ref.transaction), output_index: ffi_ref.output_index } - } - } - - impl ferment::FFIConversionTo for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const(obj: platform_mobile::put::InstantAssetLockProofFFI) -> *const platform_mobile_put_InstantAssetLockProofFFI { ferment::boxed(platform_mobile_put_InstantAssetLockProofFFI { instant_lock: >>::ffi_to(obj.instant_lock), transaction: >>::ffi_to(obj.transaction), output_index: obj.output_index }) } } - - impl Drop for platform_mobile_put_InstantAssetLockProofFFI { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.instant_lock); - ferment::unbox_any(ffi_ref.transaction); - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor<>(instant_lock: *mut crate::fermented::generics::Vec_u8, transaction: *mut crate::fermented::generics::Vec_u8, output_index: u32) -> *mut platform_mobile_put_InstantAssetLockProofFFI { ferment::boxed(platform_mobile_put_InstantAssetLockProofFFI { instant_lock, transaction, output_index }) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy<>(ffi: *mut platform_mobile_put_InstantAssetLockProofFFI) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock<>(obj: *const platform_mobile_put_InstantAssetLockProofFFI) -> *mut crate::fermented::generics::Vec_u8 { (*obj).instant_lock } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction<>(obj: *const platform_mobile_put_InstantAssetLockProofFFI) -> *mut crate::fermented::generics::Vec_u8 { (*obj).transaction } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index<>(obj: *const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (*obj).output_index } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock<>(obj: *const platform_mobile_put_InstantAssetLockProofFFI) -> *mut crate::fermented::generics::Vec_u8 { (*obj).instant_lock } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction<>(obj: *const platform_mobile_put_InstantAssetLockProofFFI) -> *mut crate::fermented::generics::Vec_u8 { (*obj).transaction } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index<>(obj: *const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (*obj).output_index } - - #[doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone(a: *mut crate::fermented::types::platform_mobile::put::platform_mobile_put_InstantAssetLockProofFFI) -> *mut crate::fermented::types::platform_mobile::put::platform_mobile_put_InstantAssetLockProofFFI { - let obj = platform_mobile::put::InstantAssetLockProofFFI_clone(>::ffi_from(a)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, identity: *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity, asset_lock_proof: *mut crate::fermented::types::platform_mobile::put::platform_mobile_put_AssetLockProofFFI, asset_lock_proof_private_key: *mut crate::fermented::generics::Vec_u8, is_testnet: bool) -> *mut crate::fermented::generics::Result_ok_u64_err_String { - let obj = platform_mobile::put::topup_identity_sdk(rust_sdk, >::ffi_from(identity), >::ffi_from(asset_lock_proof), >>::ffi_from(asset_lock_proof_private_key), is_testnet); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, document: *mut crate::fermented::types::dpp::document::dpp_document_Document, data_contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, document_type_str: *mut std::os::raw::c_char, identity_public_key: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey, block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, core_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, signer_context: usize, signer_callback: u64) -> *mut crate::fermented::generics::Result_ok_dpp_document_Document_err_String { - let obj = platform_mobile::put::replace_document_sdk(rust_sdk, >::ffi_from(document), >::ffi_from(data_contract_id), >::ffi_from(document_type_str), >::ffi_from(identity_public_key), >::ffi_from(block_height), >::ffi_from(core_block_height), signer_context, signer_callback); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, identity: *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity, asset_lock_proof: *mut crate::fermented::types::platform_mobile::put::platform_mobile_put_AssetLockProofFFI, asset_lock_proof_private_key: *mut crate::fermented::generics::Vec_u8, signer_context: usize, signer_callback: u64, is_testnet: bool) -> *mut crate::fermented::generics::Result_ok_dpp_identity_identity_Identity_err_String { - let obj = platform_mobile::put::put_identity_sdk(rust_sdk, >::ffi_from(identity), >::ffi_from(asset_lock_proof), >>::ffi_from(asset_lock_proof_private_key), signer_context, signer_callback, is_testnet); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_put_document_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, document: *mut crate::fermented::types::dpp::document::dpp_document_Document, data_contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, document_type_str: *mut std::os::raw::c_char, identity_public_key: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey, block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, core_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, signer_context: usize, signer_callback: u64) -> *mut crate::fermented::generics::Result_ok_dpp_document_Document_err_String { - let obj = platform_mobile::put::put_document_sdk(rust_sdk, >::ffi_from(document), >::ffi_from(data_contract_id), >::ffi_from(document_type_str), >::ffi_from(identity_public_key), >::ffi_from(block_height), >::ffi_from(core_block_height), signer_context, signer_callback); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk(rust_sdk: *mut platform_mobile::sdk::DashSdk, identity: *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity, master_public_key_id: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID, add_public_keys: *mut crate::fermented::generics::Vec_dpp_identity_identity_public_key_IdentityPublicKey, disable_public_keys: *mut crate::fermented::generics::Vec_dpp_identity_identity_public_key_KeyID, signer_context: usize, signer_callback: u64) -> *mut crate::fermented::generics::Result_ok_dpp_identity_identity_Identity_err_String { - let obj = platform_mobile::put::put_identity_update_sdk(rust_sdk, >::ffi_from(identity), >::ffi_from(master_public_key_id), >>::ffi_from(add_public_keys), >>::ffi_from(disable_public_keys), signer_context, signer_callback); - >>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone(a: *mut crate::fermented::types::platform_mobile::put::platform_mobile_put_ChainAssetLockProofFFI) -> *mut crate::fermented::types::platform_mobile::put::platform_mobile_put_ChainAssetLockProofFFI { - let obj = platform_mobile::put::ChainAssetLockProofFFI_clone(>::ffi_from(a)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_mobile_put_ChainAssetLockProofFFI { - pub core_chain_locked_height: u32, - pub out_point: *mut platform_mobile::custom::OutPoint, - } - - impl ferment::FFIConversionFrom for platform_mobile_put_ChainAssetLockProofFFI { - unsafe fn ffi_from_const(ffi: *const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile::put::ChainAssetLockProofFFI { - let ffi_ref = &*ffi; - platform_mobile::put::ChainAssetLockProofFFI { core_chain_locked_height: ffi_ref.core_chain_locked_height, out_point: >::ffi_from(ffi_ref.out_point) } - } - } - - impl ferment::FFIConversionTo for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const(obj: platform_mobile::put::ChainAssetLockProofFFI) -> *const platform_mobile_put_ChainAssetLockProofFFI { ferment::boxed(platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height: obj.core_chain_locked_height, out_point: >::ffi_to(obj.out_point) }) } } - - impl Drop for platform_mobile_put_ChainAssetLockProofFFI { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - ferment::unbox_any(ffi_ref.out_point); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor<>(core_chain_locked_height: u32, out_point: *mut platform_mobile::custom::OutPoint) -> *mut platform_mobile_put_ChainAssetLockProofFFI { ferment::boxed(platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height, out_point }) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy<>(ffi: *mut platform_mobile_put_ChainAssetLockProofFFI) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height<>(obj: *const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (*obj).core_chain_locked_height } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point<>(obj: *const platform_mobile_put_ChainAssetLockProofFFI) -> *mut platform_mobile::custom::OutPoint { (*obj).out_point } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height<>(obj: *const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (*obj).core_chain_locked_height } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point<>(obj: *const platform_mobile_put_ChainAssetLockProofFFI) -> *mut platform_mobile::custom::OutPoint { (*obj).out_point } - - #[doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone(a: *mut platform_mobile::custom::OutPoint) -> *mut platform_mobile::custom::OutPoint { - let obj = platform_mobile::put::OutPointFFI_clone(>::ffi_from(a)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`OutPointFFI`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_mobile_put_OutPointFFI { - pub txid: *mut crate::fermented::generics::Arr_u8_32, - pub vout: u32, - } - - impl ferment::FFIConversionFrom for platform_mobile_put_OutPointFFI { - unsafe fn ffi_from_const(ffi: *const platform_mobile_put_OutPointFFI) -> platform_mobile::put::OutPointFFI { - let ffi_ref = &*ffi; - platform_mobile::put::OutPointFFI { txid: >::ffi_from(ffi_ref.txid), vout: ffi_ref.vout } - } - } - - impl ferment::FFIConversionTo for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const(obj: platform_mobile::put::OutPointFFI) -> *const platform_mobile_put_OutPointFFI { ferment::boxed(platform_mobile_put_OutPointFFI { txid: >::ffi_to(obj.txid), vout: obj.vout }) } } - - impl Drop for platform_mobile_put_OutPointFFI { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.txid); - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor<>(txid: *mut crate::fermented::generics::Arr_u8_32, vout: u32) -> *mut platform_mobile_put_OutPointFFI { ferment::boxed(platform_mobile_put_OutPointFFI { txid, vout }) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy<>(ffi: *mut platform_mobile_put_OutPointFFI) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid<>(obj: *const platform_mobile_put_OutPointFFI) -> *mut crate::fermented::generics::Arr_u8_32 { (*obj).txid } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout<>(obj: *const platform_mobile_put_OutPointFFI) -> u32 { (*obj).vout } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid<>(obj: *const platform_mobile_put_OutPointFFI) -> *mut crate::fermented::generics::Arr_u8_32 { (*obj).txid } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout<>(obj: *const platform_mobile_put_OutPointFFI) -> u32 { (*obj).vout } - } - - pub mod data_contracts { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone(value: *mut crate::fermented::types::platform_mobile::data_contracts::platform_mobile_data_contracts_DataContractFFI) -> *mut crate::fermented::types::platform_mobile::data_contracts::platform_mobile_data_contracts_DataContractFFI { - let obj = platform_mobile::data_contracts::DataContractFFI_clone(>::ffi_from(value)); - >::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract(rust_sdk: *mut platform_mobile::sdk::DashSdk, data_contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut crate::fermented::generics::Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { - let obj = platform_mobile::data_contracts::fetch_data_contract(rust_sdk, >::ffi_from(data_contract_id)); - , String>>>::ffi_to(obj) - } - - #[doc = "FFI-representation of the [`DataContractFFI`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_mobile_data_contracts_DataContractFFI { - pub id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub owner_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub doc_types: *mut crate::fermented::generics::Vec_String, - pub version: u32, - } - - impl ferment::FFIConversionFrom for platform_mobile_data_contracts_DataContractFFI { - unsafe fn ffi_from_const(ffi: *const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile::data_contracts::DataContractFFI { - let ffi_ref = &*ffi; - platform_mobile::data_contracts::DataContractFFI { id: >::ffi_from(ffi_ref.id), owner_id: >::ffi_from(ffi_ref.owner_id), doc_types: >>::ffi_from(ffi_ref.doc_types), version: ffi_ref.version } - } - } - - impl ferment::FFIConversionTo for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const(obj: platform_mobile::data_contracts::DataContractFFI) -> *const platform_mobile_data_contracts_DataContractFFI { ferment::boxed(platform_mobile_data_contracts_DataContractFFI { id: >::ffi_to(obj.id), owner_id: >::ffi_to(obj.owner_id), doc_types: >>::ffi_to(obj.doc_types), version: obj.version }) } } - - impl Drop for platform_mobile_data_contracts_DataContractFFI { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.id); - ferment::unbox_any(ffi_ref.owner_id); - ferment::unbox_any(ffi_ref.doc_types); - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor<>(id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, owner_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, doc_types: *mut crate::fermented::generics::Vec_String, version: u32) -> *mut platform_mobile_data_contracts_DataContractFFI { ferment::boxed(platform_mobile_data_contracts_DataContractFFI { id, owner_id, doc_types, version }) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy<>(ffi: *mut platform_mobile_data_contracts_DataContractFFI) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id<>(obj: *const platform_mobile_data_contracts_DataContractFFI) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).id } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id<>(obj: *const platform_mobile_data_contracts_DataContractFFI) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).owner_id } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types<>(obj: *const platform_mobile_data_contracts_DataContractFFI) -> *mut crate::fermented::generics::Vec_String { (*obj).doc_types } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version<>(obj: *const platform_mobile_data_contracts_DataContractFFI) -> u32 { (*obj).version } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id<>(obj: *const platform_mobile_data_contracts_DataContractFFI) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).id } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id<>(obj: *const platform_mobile_data_contracts_DataContractFFI) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).owner_id } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types<>(obj: *const platform_mobile_data_contracts_DataContractFFI) -> *mut crate::fermented::generics::Vec_String { (*obj).doc_types } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version<>(obj: *const platform_mobile_data_contracts_DataContractFFI) -> u32 { (*obj).version } - } - - pub mod operators { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_operators_Value_hash(a: *mut crate::fermented::types::platform_value::platform_value_Value) -> i32 { - let obj = platform_mobile::operators::Value_hash(>::ffi_from(a)); - obj - } - - #[doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_operators_Value_eq(a: *mut crate::fermented::types::platform_value::platform_value_Value, b: *mut crate::fermented::types::platform_value::platform_value_Value) -> bool { - let obj = platform_mobile::operators::Value_eq(>::ffi_from(a), >::ffi_from(b)); - obj - } - } - } - - pub mod platform_value { - use crate as dash_sdk_bindings; - - pub mod inner_value_at_path { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum platform_value_Value { U128(*mut [u8; 16]), I128(*mut [u8; 16]), U64(u64), I64(i64), U32(u32), I32(i32), U16(u16), I16(i16), U8(u8), I8(i8), Bytes(*mut crate::fermented::generics::Vec_u8), Bytes20(*mut crate::fermented::generics::Arr_u8_20), Bytes32(*mut crate::fermented::generics::Arr_u8_32), Bytes36(*mut crate::fermented::generics::Arr_u8_36), EnumU8(*mut crate::fermented::generics::Vec_u8), EnumString(*mut crate::fermented::generics::Vec_String), Identifier(*mut crate::fermented::types::platform_value::platform_value_Hash256), Float(f64), Text(*mut std::os::raw::c_char), Bool(bool), Null, Array(*mut crate::fermented::generics::Vec_platform_value_Value), Map(*mut crate::fermented::types::platform_value::value_map::platform_value_value_map_ValueMap) } - - impl ferment::FFIConversionFrom for platform_value_Value { - unsafe fn ffi_from_const(ffi: *const platform_value_Value) -> platform_value::Value { - let ffi_ref = &*ffi; - match ffi_ref { - platform_value_Value::U128(o_0) => platform_value::Value::U128(<[u8; 16] as ferment::FFIConversionFrom>::ffi_from(*o_0)), - platform_value_Value::I128(o_0) => platform_value::Value::I128(<[u8; 16] as ferment::FFIConversionFrom>::ffi_from(*o_0)), - platform_value_Value::U64(o_0) => platform_value::Value::U64(*o_0), - platform_value_Value::I64(o_0) => platform_value::Value::I64(*o_0), - platform_value_Value::U32(o_0) => platform_value::Value::U32(*o_0), - platform_value_Value::I32(o_0) => platform_value::Value::I32(*o_0), - platform_value_Value::U16(o_0) => platform_value::Value::U16(*o_0), - platform_value_Value::I16(o_0) => platform_value::Value::I16(*o_0), - platform_value_Value::U8(o_0) => platform_value::Value::U8(*o_0), - platform_value_Value::I8(o_0) => platform_value::Value::I8(*o_0), - platform_value_Value::Bytes(o_0) => platform_value::Value::Bytes(>>::ffi_from(*o_0)), - platform_value_Value::Bytes20(o_0) => platform_value::Value::Bytes20(>::ffi_from(*o_0)), - platform_value_Value::Bytes32(o_0) => platform_value::Value::Bytes32(>::ffi_from(*o_0)), - platform_value_Value::Bytes36(o_0) => platform_value::Value::Bytes36(>::ffi_from(*o_0)), - platform_value_Value::EnumU8(o_0) => platform_value::Value::EnumU8(>>::ffi_from(*o_0)), - platform_value_Value::EnumString(o_0) => platform_value::Value::EnumString(>>::ffi_from(*o_0)), - platform_value_Value::Identifier(o_0) => platform_value::Value::Identifier(>::ffi_from(*o_0)), - platform_value_Value::Float(o_0) => platform_value::Value::Float(*o_0), - platform_value_Value::Text(o_0) => platform_value::Value::Text(>::ffi_from(*o_0)), - platform_value_Value::Bool(o_0) => platform_value::Value::Bool(*o_0), - platform_value_Value::Null => platform_value::Value::Null, - platform_value_Value::Array(o_0) => platform_value::Value::Array(>>::ffi_from(*o_0)), - platform_value_Value::Map(o_0) => platform_value::Value::Map(>::ffi_from(*o_0)) - } - } - } - - impl ferment::FFIConversionTo for platform_value_Value { - unsafe fn ffi_to_const(obj: platform_value::Value) -> *const platform_value_Value { - ferment::boxed(match obj { - platform_value::Value::U128(o_0) => platform_value_Value::U128(<[u8; 16] as ferment::FFIConversionTo>::ffi_to(o_0)), - platform_value::Value::I128(o_0) => platform_value_Value::I128(<[u8; 16] as ferment::FFIConversionTo>::ffi_to(o_0)), - platform_value::Value::U64(o_0) => platform_value_Value::U64(o_0), - platform_value::Value::I64(o_0) => platform_value_Value::I64(o_0), - platform_value::Value::U32(o_0) => platform_value_Value::U32(o_0), - platform_value::Value::I32(o_0) => platform_value_Value::I32(o_0), - platform_value::Value::U16(o_0) => platform_value_Value::U16(o_0), - platform_value::Value::I16(o_0) => platform_value_Value::I16(o_0), - platform_value::Value::U8(o_0) => platform_value_Value::U8(o_0), - platform_value::Value::I8(o_0) => platform_value_Value::I8(o_0), - platform_value::Value::Bytes(o_0) => platform_value_Value::Bytes(>>::ffi_to(o_0)), - platform_value::Value::Bytes20(o_0) => platform_value_Value::Bytes20(>::ffi_to(o_0)), - platform_value::Value::Bytes32(o_0) => platform_value_Value::Bytes32(>::ffi_to(o_0)), - platform_value::Value::Bytes36(o_0) => platform_value_Value::Bytes36(>::ffi_to(o_0)), - platform_value::Value::EnumU8(o_0) => platform_value_Value::EnumU8(>>::ffi_to(o_0)), - platform_value::Value::EnumString(o_0) => platform_value_Value::EnumString(>>::ffi_to(o_0)), - platform_value::Value::Identifier(o_0) => platform_value_Value::Identifier(>::ffi_to(o_0)), - platform_value::Value::Float(o_0) => platform_value_Value::Float(o_0), - platform_value::Value::Text(o_0) => platform_value_Value::Text(>::ffi_to(o_0)), - platform_value::Value::Bool(o_0) => platform_value_Value::Bool(o_0), - platform_value::Value::Null => platform_value_Value::Null, - platform_value::Value::Array(o_0) => platform_value_Value::Array(>>::ffi_to(o_0)), - platform_value::Value::Map(o_0) => platform_value_Value::Map(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for platform_value_Value { - fn drop(&mut self) { - unsafe { - match self { - platform_value_Value::U128(o_0) => { ferment::unbox_any_opt(*o_0); } - platform_value_Value::I128(o_0) => { ferment::unbox_any_opt(*o_0); } - platform_value_Value::U64(o_0) => { ; } - platform_value_Value::I64(o_0) => { ; } - platform_value_Value::U32(o_0) => { ; } - platform_value_Value::I32(o_0) => { ; } - platform_value_Value::U16(o_0) => { ; } - platform_value_Value::I16(o_0) => { ; } - platform_value_Value::U8(o_0) => { ; } - platform_value_Value::I8(o_0) => { ; } - platform_value_Value::Bytes(o_0) => { ferment::unbox_any(*o_0); } - platform_value_Value::Bytes20(o_0) => { ferment::unbox_any(*o_0); } - platform_value_Value::Bytes32(o_0) => { ferment::unbox_any(*o_0); } - platform_value_Value::Bytes36(o_0) => { ferment::unbox_any(*o_0); } - platform_value_Value::EnumU8(o_0) => { ferment::unbox_any(*o_0); } - platform_value_Value::EnumString(o_0) => { ferment::unbox_any(*o_0); } - platform_value_Value::Identifier(o_0) => { ferment::unbox_any(*o_0); } - platform_value_Value::Float(o_0) => { ; } - platform_value_Value::Text(o_0) => { ferment::unbox_string(*o_0); } - platform_value_Value::Bool(o_0) => { ; } - platform_value_Value::Null => {} - platform_value_Value::Array(o_0) => { ferment::unbox_any(*o_0); } - platform_value_Value::Map(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_U128_ctor(o_o_0: *mut [u8; 16]) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::U128(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_I128_ctor(o_o_0: *mut [u8; 16]) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::I128(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_U64_ctor(o_o_0: u64) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::U64(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_I64_ctor(o_o_0: i64) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::I64(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_U32_ctor(o_o_0: u32) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::U32(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_I32_ctor(o_o_0: i32) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::I32(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_U16_ctor(o_o_0: u16) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::U16(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_I16_ctor(o_o_0: i16) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::I16(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_U8_ctor(o_o_0: u8) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::U8(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_I8_ctor(o_o_0: i8) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::I8(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Bytes_ctor(o_o_0: *mut crate::fermented::generics::Vec_u8) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Bytes(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor(o_o_0: *mut crate::fermented::generics::Arr_u8_20) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Bytes20(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor(o_o_0: *mut crate::fermented::generics::Arr_u8_32) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Bytes32(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor(o_o_0: *mut crate::fermented::generics::Arr_u8_36) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Bytes36(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor(o_o_0: *mut crate::fermented::generics::Vec_u8) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::EnumU8(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_EnumString_ctor(o_o_0: *mut crate::fermented::generics::Vec_String) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::EnumString(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Identifier_ctor(o_o_0: *mut crate::fermented::types::platform_value::platform_value_Hash256) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Identifier(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Float_ctor(o_o_0: f64) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Float(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Text_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Text(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Bool_ctor(o_o_0: bool) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Bool(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Null_ctor() -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Null {}) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Array_ctor(o_o_0: *mut crate::fermented::generics::Vec_platform_value_Value) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Array(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_Map_ctor(o_o_0: *mut crate::fermented::types::platform_value::value_map::platform_value_value_map_ValueMap) -> *mut platform_value_Value { ferment::boxed(platform_value_Value::Map(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Value_destroy<>(ffi: *mut platform_value_Value) { ferment::unbox_any(ffi); } - - pub mod types { - use crate as dash_sdk_bindings; - - pub mod bytes_20 { use crate as dash_sdk_bindings; } - - pub mod bytes_36 { use crate as dash_sdk_bindings; } - - pub mod identifier { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`IdentifierBytes32`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_value_types_identifier_IdentifierBytes32(*mut crate::fermented::generics::Arr_u8_32); - - impl ferment::FFIConversionFrom for platform_value_types_identifier_IdentifierBytes32 { - unsafe fn ffi_from_const(ffi: *const platform_value_types_identifier_IdentifierBytes32) -> platform_value::types::identifier::IdentifierBytes32 { - let ffi_ref = &*ffi; - platform_value::types::identifier::IdentifierBytes32(>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const(obj: platform_value::types::identifier::IdentifierBytes32) -> *const platform_value_types_identifier_IdentifierBytes32 { ferment::boxed(platform_value_types_identifier_IdentifierBytes32(>::ffi_to(obj.0))) } } - - impl Drop for platform_value_types_identifier_IdentifierBytes32 { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor<>(o_0: *mut crate::fermented::generics::Arr_u8_32) -> *mut platform_value_types_identifier_IdentifierBytes32 { ferment::boxed(platform_value_types_identifier_IdentifierBytes32(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy<>(ffi: *mut platform_value_types_identifier_IdentifierBytes32) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0<>(obj: *const platform_value_types_identifier_IdentifierBytes32) -> *mut crate::fermented::generics::Arr_u8_32 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0<>(obj: *const platform_value_types_identifier_IdentifierBytes32) -> *mut crate::fermented::generics::Arr_u8_32 { (*obj).0 } - - #[doc = "FFI-representation of the [`Identifier`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_value_types_identifier_Identifier(*mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_IdentifierBytes32); - - impl ferment::FFIConversionFrom for platform_value_types_identifier_Identifier { - unsafe fn ffi_from_const(ffi: *const platform_value_types_identifier_Identifier) -> platform_value::types::identifier::Identifier { - let ffi_ref = &*ffi; - platform_value::types::identifier::Identifier(>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const(obj: platform_value::types::identifier::Identifier) -> *const platform_value_types_identifier_Identifier { ferment::boxed(platform_value_types_identifier_Identifier(>::ffi_to(obj.0))) } } - - impl Drop for platform_value_types_identifier_Identifier { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor<>(o_0: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_IdentifierBytes32) -> *mut platform_value_types_identifier_Identifier { ferment::boxed(platform_value_types_identifier_Identifier(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy<>(ffi: *mut platform_value_types_identifier_Identifier) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0<>(obj: *const platform_value_types_identifier_Identifier) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_IdentifierBytes32 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0<>(obj: *const platform_value_types_identifier_Identifier) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_IdentifierBytes32 { (*obj).0 } - } - - pub mod bytes_32 { use crate as dash_sdk_bindings; } - - pub mod binary_data { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`BinaryData`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_value_types_binary_data_BinaryData(*mut crate::fermented::generics::Vec_u8); - - impl ferment::FFIConversionFrom for platform_value_types_binary_data_BinaryData { - unsafe fn ffi_from_const(ffi: *const platform_value_types_binary_data_BinaryData) -> platform_value::types::binary_data::BinaryData { - let ffi_ref = &*ffi; - platform_value::types::binary_data::BinaryData(>>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const(obj: platform_value::types::binary_data::BinaryData) -> *const platform_value_types_binary_data_BinaryData { ferment::boxed(platform_value_types_binary_data_BinaryData(>>::ffi_to(obj.0))) } } - - impl Drop for platform_value_types_binary_data_BinaryData { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor<>(o_0: *mut crate::fermented::generics::Vec_u8) -> *mut platform_value_types_binary_data_BinaryData { ferment::boxed(platform_value_types_binary_data_BinaryData(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy<>(ffi: *mut platform_value_types_binary_data_BinaryData) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0<>(obj: *const platform_value_types_binary_data_BinaryData) -> *mut crate::fermented::generics::Vec_u8 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0<>(obj: *const platform_value_types_binary_data_BinaryData) -> *mut crate::fermented::generics::Vec_u8 { (*obj).0 } - } - } - - pub mod btreemap_extensions { - use crate as dash_sdk_bindings; - - pub mod btreemap_path_extensions { use crate as dash_sdk_bindings; } - - pub mod btreemap_removal_extensions { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod btreemap_field_replacement { use crate as dash_sdk_bindings; } - } - - pub mod error { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum platform_value_error_Error { Unsupported(*mut std::os::raw::c_char), StructureError(*mut std::os::raw::c_char), PathError(*mut std::os::raw::c_char), IntegerSizeError, IntegerParsingError, StringDecodingError(*mut std::os::raw::c_char), KeyMustBeAString, ByteLengthNot20BytesError(*mut std::os::raw::c_char), ByteLengthNot32BytesError(*mut std::os::raw::c_char), ByteLengthNot36BytesError(*mut std::os::raw::c_char), SerdeSerializationError(*mut std::os::raw::c_char), SerdeDeserializationError(*mut std::os::raw::c_char), CborSerializationError(*mut std::os::raw::c_char) } - - impl ferment::FFIConversionFrom for platform_value_error_Error { - unsafe fn ffi_from_const(ffi: *const platform_value_error_Error) -> platform_value::error::Error { - let ffi_ref = &*ffi; - match ffi_ref { - platform_value_error_Error::Unsupported(o_0) => platform_value::error::Error::Unsupported(>::ffi_from(*o_0)), - platform_value_error_Error::StructureError(o_0) => platform_value::error::Error::StructureError(>::ffi_from(*o_0)), - platform_value_error_Error::PathError(o_0) => platform_value::error::Error::PathError(>::ffi_from(*o_0)), - platform_value_error_Error::IntegerSizeError => platform_value::error::Error::IntegerSizeError, - platform_value_error_Error::IntegerParsingError => platform_value::error::Error::IntegerParsingError, - platform_value_error_Error::StringDecodingError(o_0) => platform_value::error::Error::StringDecodingError(>::ffi_from(*o_0)), - platform_value_error_Error::KeyMustBeAString => platform_value::error::Error::KeyMustBeAString, - platform_value_error_Error::ByteLengthNot20BytesError(o_0) => platform_value::error::Error::ByteLengthNot20BytesError(>::ffi_from(*o_0)), - platform_value_error_Error::ByteLengthNot32BytesError(o_0) => platform_value::error::Error::ByteLengthNot32BytesError(>::ffi_from(*o_0)), - platform_value_error_Error::ByteLengthNot36BytesError(o_0) => platform_value::error::Error::ByteLengthNot36BytesError(>::ffi_from(*o_0)), - platform_value_error_Error::SerdeSerializationError(o_0) => platform_value::error::Error::SerdeSerializationError(>::ffi_from(*o_0)), - platform_value_error_Error::SerdeDeserializationError(o_0) => platform_value::error::Error::SerdeDeserializationError(>::ffi_from(*o_0)), - platform_value_error_Error::CborSerializationError(o_0) => platform_value::error::Error::CborSerializationError(>::ffi_from(*o_0)) - } - } - } - - impl ferment::FFIConversionTo for platform_value_error_Error { - unsafe fn ffi_to_const(obj: platform_value::error::Error) -> *const platform_value_error_Error { - ferment::boxed(match obj { - platform_value::error::Error::Unsupported(o_0) => platform_value_error_Error::Unsupported(>::ffi_to(o_0)), - platform_value::error::Error::StructureError(o_0) => platform_value_error_Error::StructureError(>::ffi_to(o_0)), - platform_value::error::Error::PathError(o_0) => platform_value_error_Error::PathError(>::ffi_to(o_0)), - platform_value::error::Error::IntegerSizeError => platform_value_error_Error::IntegerSizeError, - platform_value::error::Error::IntegerParsingError => platform_value_error_Error::IntegerParsingError, - platform_value::error::Error::StringDecodingError(o_0) => platform_value_error_Error::StringDecodingError(>::ffi_to(o_0)), - platform_value::error::Error::KeyMustBeAString => platform_value_error_Error::KeyMustBeAString, - platform_value::error::Error::ByteLengthNot20BytesError(o_0) => platform_value_error_Error::ByteLengthNot20BytesError(>::ffi_to(o_0)), - platform_value::error::Error::ByteLengthNot32BytesError(o_0) => platform_value_error_Error::ByteLengthNot32BytesError(>::ffi_to(o_0)), - platform_value::error::Error::ByteLengthNot36BytesError(o_0) => platform_value_error_Error::ByteLengthNot36BytesError(>::ffi_to(o_0)), - platform_value::error::Error::SerdeSerializationError(o_0) => platform_value_error_Error::SerdeSerializationError(>::ffi_to(o_0)), - platform_value::error::Error::SerdeDeserializationError(o_0) => platform_value_error_Error::SerdeDeserializationError(>::ffi_to(o_0)), - platform_value::error::Error::CborSerializationError(o_0) => platform_value_error_Error::CborSerializationError(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for platform_value_error_Error { - fn drop(&mut self) { - unsafe { - match self { - platform_value_error_Error::Unsupported(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::StructureError(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::PathError(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::IntegerSizeError => {} - platform_value_error_Error::IntegerParsingError => {} - platform_value_error_Error::StringDecodingError(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::KeyMustBeAString => {} - platform_value_error_Error::ByteLengthNot20BytesError(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::ByteLengthNot32BytesError(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::ByteLengthNot36BytesError(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::SerdeSerializationError(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::SerdeDeserializationError(o_0) => { ferment::unbox_string(*o_0); } - platform_value_error_Error::CborSerializationError(o_0) => { ferment::unbox_string(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::Unsupported(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::StructureError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::PathError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor() -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::IntegerSizeError {}) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor() -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::IntegerParsingError {}) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::StringDecodingError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor() -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::KeyMustBeAString {}) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::ByteLengthNot20BytesError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::ByteLengthNot32BytesError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::ByteLengthNot36BytesError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::SerdeSerializationError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::SerdeDeserializationError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor(o_o_0: *mut std::os::raw::c_char) -> *mut platform_value_error_Error { ferment::boxed(platform_value_error_Error::CborSerializationError(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_error_Error_destroy<>(ffi: *mut platform_value_error_Error) { ferment::unbox_any(ffi); } - } - - pub mod patch { - use crate as dash_sdk_bindings; - - pub mod diff { use crate as dash_sdk_bindings; } - } - - pub mod value_map { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`ValueMap`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_value_value_map_ValueMap(*mut crate::fermented::generics::Vec_Tuple_platform_value_Value_platform_value_Value); - - impl ferment::FFIConversionFrom for platform_value_value_map_ValueMap { - unsafe fn ffi_from_const(ffi: *const platform_value_value_map_ValueMap) -> platform_value::value_map::ValueMap { - let ffi_ref = &*ffi; - >>::ffi_from(ffi_ref.0) - } - } - - impl ferment::FFIConversionTo for platform_value_value_map_ValueMap { unsafe fn ffi_to_const(obj: platform_value::value_map::ValueMap) -> *const platform_value_value_map_ValueMap { ferment::boxed(platform_value_value_map_ValueMap(>>::ffi_to(obj))) } } - - impl Drop for platform_value_value_map_ValueMap { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor<>(o_0: *mut crate::fermented::generics::Vec_Tuple_platform_value_Value_platform_value_Value) -> *mut platform_value_value_map_ValueMap { ferment::boxed(platform_value_value_map_ValueMap(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy<>(ffi: *mut platform_value_value_map_ValueMap) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0<>(obj: *const platform_value_value_map_ValueMap) -> *mut crate::fermented::generics::Vec_Tuple_platform_value_Value_platform_value_Value { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0<>(obj: *const platform_value_value_map_ValueMap) -> *mut crate::fermented::generics::Vec_Tuple_platform_value_Value_platform_value_Value { (*obj).0 } - } - - pub mod pointer { use crate as dash_sdk_bindings; } - - pub mod macros { use crate as dash_sdk_bindings; } - - #[doc = "FFI-representation of the [`Hash256`]"] - #[repr(C)] - #[derive(Clone)] - pub struct platform_value_Hash256(*mut crate::fermented::generics::Arr_u8_32); - - impl ferment::FFIConversionFrom for platform_value_Hash256 { - unsafe fn ffi_from_const(ffi: *const platform_value_Hash256) -> platform_value::Hash256 { - let ffi_ref = &*ffi; - >::ffi_from(ffi_ref.0) - } - } - - impl ferment::FFIConversionTo for platform_value_Hash256 { unsafe fn ffi_to_const(obj: platform_value::Hash256) -> *const platform_value_Hash256 { ferment::boxed(platform_value_Hash256(>::ffi_to(obj))) } } - - impl Drop for platform_value_Hash256 { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Hash256_ctor<>(o_0: *mut crate::fermented::generics::Arr_u8_32) -> *mut platform_value_Hash256 { ferment::boxed(platform_value_Hash256(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Hash256_destroy<>(ffi: *mut platform_value_Hash256) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Hash256_get_0<>(obj: *const platform_value_Hash256) -> *mut crate::fermented::generics::Arr_u8_32 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn platform_value_Hash256_set_0<>(obj: *const platform_value_Hash256) -> *mut crate::fermented::generics::Arr_u8_32 { (*obj).0 } - - pub mod index { use crate as dash_sdk_bindings; } - - pub mod inner_value { use crate as dash_sdk_bindings; } - - pub mod value_serialization { - use crate as dash_sdk_bindings; - - pub mod de { use crate as dash_sdk_bindings; } - - pub mod ser { use crate as dash_sdk_bindings; } - } - - pub mod system_bytes { use crate as dash_sdk_bindings; } - - pub mod replace { use crate as dash_sdk_bindings; } - - pub mod converter { - use crate as dash_sdk_bindings; - - #[cfg(feature = "json")] - pub mod serde_json { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "cbor")] - pub mod ciborium { - use crate as dash_sdk_bindings; - } - } - - pub mod eq { use crate as dash_sdk_bindings; } - } - - pub mod drive_proof_verifier { - use crate as dash_sdk_bindings; - - pub mod from_request { use crate as dash_sdk_bindings; } - - pub mod unproved { use crate as dash_sdk_bindings; } - - pub mod proof { use crate as dash_sdk_bindings; } - - pub mod types { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`ContestedResources`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_proof_verifier_types_ContestedResources(*mut crate::fermented::generics::Vec_drive_proof_verifier_types_ContestedResource); - - impl ferment::FFIConversionFrom for drive_proof_verifier_types_ContestedResources { - unsafe fn ffi_from_const(ffi: *const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier::types::ContestedResources { - let ffi_ref = &*ffi; - drive_proof_verifier::types::ContestedResources(>>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const(obj: drive_proof_verifier::types::ContestedResources) -> *const drive_proof_verifier_types_ContestedResources { ferment::boxed(drive_proof_verifier_types_ContestedResources(>>::ffi_to(obj.0))) } } - - impl Drop for drive_proof_verifier_types_ContestedResources { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor<>(o_0: *mut crate::fermented::generics::Vec_drive_proof_verifier_types_ContestedResource) -> *mut drive_proof_verifier_types_ContestedResources { ferment::boxed(drive_proof_verifier_types_ContestedResources(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy<>(ffi: *mut drive_proof_verifier_types_ContestedResources) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0<>(obj: *const drive_proof_verifier_types_ContestedResources) -> *mut crate::fermented::generics::Vec_drive_proof_verifier_types_ContestedResource { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0<>(obj: *const drive_proof_verifier_types_ContestedResources) -> *mut crate::fermented::generics::Vec_drive_proof_verifier_types_ContestedResource { (*obj).0 } - - #[doc = "FFI-representation of the [`ContestedResource`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_proof_verifier_types_ContestedResource(*mut crate::fermented::types::platform_value::platform_value_Value); - - impl ferment::FFIConversionFrom for drive_proof_verifier_types_ContestedResource { - unsafe fn ffi_from_const(ffi: *const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier::types::ContestedResource { - let ffi_ref = &*ffi; - drive_proof_verifier::types::ContestedResource(>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const(obj: drive_proof_verifier::types::ContestedResource) -> *const drive_proof_verifier_types_ContestedResource { ferment::boxed(drive_proof_verifier_types_ContestedResource(>::ffi_to(obj.0))) } } - - impl Drop for drive_proof_verifier_types_ContestedResource { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor<>(o_0: *mut crate::fermented::types::platform_value::platform_value_Value) -> *mut drive_proof_verifier_types_ContestedResource { ferment::boxed(drive_proof_verifier_types_ContestedResource(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy<>(ffi: *mut drive_proof_verifier_types_ContestedResource) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0<>(obj: *const drive_proof_verifier_types_ContestedResource) -> *mut crate::fermented::types::platform_value::platform_value_Value { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0<>(obj: *const drive_proof_verifier_types_ContestedResource) -> *mut crate::fermented::types::platform_value::platform_value_Value { (*obj).0 } - - #[doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_proof_verifier_types_ResourceVotesByIdentity(*mut crate::fermented::generics::std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote); - - impl ferment::FFIConversionFrom for drive_proof_verifier_types_ResourceVotesByIdentity { - unsafe fn ffi_from_const(ffi: *const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier::types::ResourceVotesByIdentity { - let ffi_ref = &*ffi; - >>>::ffi_from(ffi_ref.0) - } - } - - impl ferment::FFIConversionTo for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const(obj: drive_proof_verifier::types::ResourceVotesByIdentity) -> *const drive_proof_verifier_types_ResourceVotesByIdentity { ferment::boxed(drive_proof_verifier_types_ResourceVotesByIdentity(>>>::ffi_to(obj))) } } - - impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor<>(o_0: *mut crate::fermented::generics::std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> *mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment::boxed(drive_proof_verifier_types_ResourceVotesByIdentity(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy<>(ffi: *mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0<>(obj: *const drive_proof_verifier_types_ResourceVotesByIdentity) -> *mut crate::fermented::generics::std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0<>(obj: *const drive_proof_verifier_types_ResourceVotesByIdentity) -> *mut crate::fermented::generics::std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (*obj).0 } - - #[doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp(*mut crate::fermented::generics::Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll); - - impl ferment::FFIConversionFrom for drive_proof_verifier_types_VotePollsGroupedByTimestamp { - unsafe fn ffi_from_const(ffi: *const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier::types::VotePollsGroupedByTimestamp { - let ffi_ref = &*ffi; - drive_proof_verifier::types::VotePollsGroupedByTimestamp()>>>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const(obj: drive_proof_verifier::types::VotePollsGroupedByTimestamp) -> *const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment::boxed(drive_proof_verifier_types_VotePollsGroupedByTimestamp()>>>::ffi_to(obj.0))) } } - - impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor<>(o_0: *mut crate::fermented::generics::Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> *mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment::boxed(drive_proof_verifier_types_VotePollsGroupedByTimestamp(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy<>(ffi: *mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0<>(obj: *const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> *mut crate::fermented::generics::Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0<>(obj: *const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> *mut crate::fermented::generics::Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (*obj).0 } - - #[doc = "FFI-representation of the [`Voters`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_proof_verifier_types_Voters(*mut crate::fermented::generics::std_collections_BTreeSet_drive_proof_verifier_types_Voter); - - impl ferment::FFIConversionFrom for drive_proof_verifier_types_Voters { - unsafe fn ffi_from_const(ffi: *const drive_proof_verifier_types_Voters) -> drive_proof_verifier::types::Voters { - let ffi_ref = &*ffi; - drive_proof_verifier::types::Voters(>>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const(obj: drive_proof_verifier::types::Voters) -> *const drive_proof_verifier_types_Voters { ferment::boxed(drive_proof_verifier_types_Voters(>>::ffi_to(obj.0))) } } - - impl Drop for drive_proof_verifier_types_Voters { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor<>(o_0: *mut crate::fermented::generics::std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> *mut drive_proof_verifier_types_Voters { ferment::boxed(drive_proof_verifier_types_Voters(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy<>(ffi: *mut drive_proof_verifier_types_Voters) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0<>(obj: *const drive_proof_verifier_types_Voters) -> *mut crate::fermented::generics::std_collections_BTreeSet_drive_proof_verifier_types_Voter { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0<>(obj: *const drive_proof_verifier_types_Voters) -> *mut crate::fermented::generics::std_collections_BTreeSet_drive_proof_verifier_types_Voter { (*obj).0 } - - #[doc = "FFI-representation of the [`Contenders`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_proof_verifier_types_Contenders { - pub winner: *mut crate::fermented::generics::Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo, - pub contenders: *mut crate::fermented::generics::std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument, - pub abstain_vote_tally: *mut u32, - pub lock_vote_tally: *mut u32, - } - - impl ferment::FFIConversionFrom for drive_proof_verifier_types_Contenders { - unsafe fn ffi_from_const(ffi: *const drive_proof_verifier_types_Contenders) -> drive_proof_verifier::types::Contenders { - let ffi_ref = &*ffi; - drive_proof_verifier::types::Contenders { - winner: >::ffi_from_opt(ffi_ref.winner), - contenders: >>::ffi_from(ffi_ref.contenders), - abstain_vote_tally: ferment::from_opt_primitive(ffi_ref.abstain_vote_tally), - lock_vote_tally: ferment::from_opt_primitive(ffi_ref.lock_vote_tally), - } - } - } - - impl ferment::FFIConversionTo for drive_proof_verifier_types_Contenders { - unsafe fn ffi_to_const(obj: drive_proof_verifier::types::Contenders) -> *const drive_proof_verifier_types_Contenders { - ferment::boxed(drive_proof_verifier_types_Contenders { winner: >::ffi_to_opt(obj.winner), contenders: >>::ffi_to(obj.contenders), abstain_vote_tally: ferment::to_opt_primitive(obj.abstain_vote_tally), lock_vote_tally: ferment::to_opt_primitive(obj.lock_vote_tally) }) - } - } - - impl Drop for drive_proof_verifier_types_Contenders { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any_opt(ffi_ref.winner); - ferment::unbox_any(ffi_ref.contenders); - ferment::destroy_opt_primitive(ffi_ref.abstain_vote_tally); - ferment::destroy_opt_primitive(ffi_ref.lock_vote_tally); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor<>(winner: *mut crate::fermented::generics::Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo, contenders: *mut crate::fermented::generics::std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument, abstain_vote_tally: *mut u32, lock_vote_tally: *mut u32) -> *mut drive_proof_verifier_types_Contenders { ferment::boxed(drive_proof_verifier_types_Contenders { winner, contenders, abstain_vote_tally, lock_vote_tally }) } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy<>(ffi: *mut drive_proof_verifier_types_Contenders) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner<>(obj: *const drive_proof_verifier_types_Contenders) -> *mut crate::fermented::generics::Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (*obj).winner } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders<>(obj: *const drive_proof_verifier_types_Contenders) -> *mut crate::fermented::generics::std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (*obj).contenders } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally<>(obj: *const drive_proof_verifier_types_Contenders) -> *mut u32 { (*obj).abstain_vote_tally } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally<>(obj: *const drive_proof_verifier_types_Contenders) -> *mut u32 { (*obj).lock_vote_tally } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner<>(obj: *const drive_proof_verifier_types_Contenders) -> *mut crate::fermented::generics::Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (*obj).winner } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders<>(obj: *const drive_proof_verifier_types_Contenders) -> *mut crate::fermented::generics::std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (*obj).contenders } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally<>(obj: *const drive_proof_verifier_types_Contenders) -> *mut u32 { (*obj).abstain_vote_tally } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally<>(obj: *const drive_proof_verifier_types_Contenders) -> *mut u32 { (*obj).lock_vote_tally } - - #[doc = "FFI-representation of the [`Voter`]"] - #[repr(C)] - #[derive(Clone)] - pub struct drive_proof_verifier_types_Voter(*mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier); - - impl ferment::FFIConversionFrom for drive_proof_verifier_types_Voter { - unsafe fn ffi_from_const(ffi: *const drive_proof_verifier_types_Voter) -> drive_proof_verifier::types::Voter { - let ffi_ref = &*ffi; - drive_proof_verifier::types::Voter(>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const(obj: drive_proof_verifier::types::Voter) -> *const drive_proof_verifier_types_Voter { ferment::boxed(drive_proof_verifier_types_Voter(>::ffi_to(obj.0))) } } - - impl Drop for drive_proof_verifier_types_Voter { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor<>(o_0: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut drive_proof_verifier_types_Voter { ferment::boxed(drive_proof_verifier_types_Voter(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy<>(ffi: *mut drive_proof_verifier_types_Voter) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0<>(obj: *const drive_proof_verifier_types_Voter) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0<>(obj: *const drive_proof_verifier_types_Voter) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).0 } - } - - pub mod verify { use crate as dash_sdk_bindings; } - - pub mod error { use crate as dash_sdk_bindings; } - } - - pub mod dash_sdk { - use crate as dash_sdk_bindings; - - pub mod error { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod platform { - use crate as dash_sdk_bindings; - - pub mod tokens { - use crate as dash_sdk_bindings; - - pub mod builders { use crate as dash_sdk_bindings; } - - pub mod transitions { use crate as dash_sdk_bindings; } - } - - pub mod documents { - use crate as dash_sdk_bindings; - - pub mod document_average { use crate as dash_sdk_bindings; } - - pub mod transitions { use crate as dash_sdk_bindings; } - - pub mod document_sum { use crate as dash_sdk_bindings; } - } - - pub mod address_sync { use crate as dash_sdk_bindings; } - - pub mod trunk_branch_sync { - use crate as dash_sdk_bindings; - - pub mod tracker { use crate as dash_sdk_bindings; } - } - - pub mod types { - use crate as dash_sdk_bindings; - - pub mod identity { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`PublicKeyHash`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dash_sdk_platform_types_identity_PublicKeyHash(*mut crate::fermented::generics::Arr_u8_20); - - impl ferment::FFIConversionFrom for dash_sdk_platform_types_identity_PublicKeyHash { - unsafe fn ffi_from_const(ffi: *const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk::platform::types::identity::PublicKeyHash { - let ffi_ref = &*ffi; - dash_sdk::platform::types::identity::PublicKeyHash(>::ffi_from(ffi_ref.0)) - } - } - - impl ferment::FFIConversionTo for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const(obj: dash_sdk::platform::types::identity::PublicKeyHash) -> *const dash_sdk_platform_types_identity_PublicKeyHash { ferment::boxed(dash_sdk_platform_types_identity_PublicKeyHash(>::ffi_to(obj.0))) } } - - impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor<>(o_0: *mut crate::fermented::generics::Arr_u8_20) -> *mut dash_sdk_platform_types_identity_PublicKeyHash { ferment::boxed(dash_sdk_platform_types_identity_PublicKeyHash(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy<>(ffi: *mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0<>(obj: *const dash_sdk_platform_types_identity_PublicKeyHash) -> *mut crate::fermented::generics::Arr_u8_20 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0<>(obj: *const dash_sdk_platform_types_identity_PublicKeyHash) -> *mut crate::fermented::generics::Arr_u8_20 { (*obj).0 } - } - } - - pub mod dashpay { - use crate as dash_sdk_bindings; - - pub mod contact_request { use crate as dash_sdk_bindings; } - } - - pub mod dpns_usernames { use crate as dash_sdk_bindings; } - - #[cfg(feature = "shielded")] - pub mod shielded { - use crate as dash_sdk_bindings; - - pub mod notes_sync { - use crate as dash_sdk_bindings; - - pub mod sync_shielded_notes { use crate as dash_sdk_bindings; } - } - } - - pub mod transition { use crate as dash_sdk_bindings; } - } - - pub mod mock { - use crate as dash_sdk_bindings; - - #[cfg(feature = "mocks")] - pub mod sdk { - use crate as dash_sdk_bindings; - } - } - - pub mod core { use crate as dash_sdk_bindings; } - - pub mod sdk { use crate as dash_sdk_bindings; } - - pub mod internal_cache { use crate as dash_sdk_bindings; } - - pub mod sync { use crate as dash_sdk_bindings; } - } - - pub mod dpp { - use crate as dash_sdk_bindings; - - pub mod block { - use crate as dash_sdk_bindings; - - pub mod extended_block_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod extended_epoch_info { use crate as dash_sdk_bindings; } - - pub mod epoch { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`Epoch`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_block_epoch_Epoch { - pub index: *mut crate::fermented::types::dpp::block::epoch::dpp_block_epoch_EpochIndex, - pub key: *mut crate::fermented::generics::Arr_u8_2, - } - - impl ferment::FFIConversionFrom for dpp_block_epoch_Epoch { - unsafe fn ffi_from_const(ffi: *const dpp_block_epoch_Epoch) -> dpp::block::epoch::Epoch { - let ffi_ref = &*ffi; - dpp::block::epoch::Epoch { index: >::ffi_from(ffi_ref.index), key: >::ffi_from(ffi_ref.key) } - } - } - - impl ferment::FFIConversionTo for dpp_block_epoch_Epoch { unsafe fn ffi_to_const(obj: dpp::block::epoch::Epoch) -> *const dpp_block_epoch_Epoch { ferment::boxed(dpp_block_epoch_Epoch { index: >::ffi_to(obj.index), key: >::ffi_to(obj.key) }) } } - - impl Drop for dpp_block_epoch_Epoch { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.index); - ferment::unbox_any(ffi_ref.key); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor<>(index: *mut crate::fermented::types::dpp::block::epoch::dpp_block_epoch_EpochIndex, key: *mut crate::fermented::generics::Arr_u8_2) -> *mut dpp_block_epoch_Epoch { ferment::boxed(dpp_block_epoch_Epoch { index, key }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy<>(ffi: *mut dpp_block_epoch_Epoch) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index<>(obj: *const dpp_block_epoch_Epoch) -> *mut crate::fermented::types::dpp::block::epoch::dpp_block_epoch_EpochIndex { (*obj).index } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key<>(obj: *const dpp_block_epoch_Epoch) -> *mut crate::fermented::generics::Arr_u8_2 { (*obj).key } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index<>(obj: *const dpp_block_epoch_Epoch) -> *mut crate::fermented::types::dpp::block::epoch::dpp_block_epoch_EpochIndex { (*obj).index } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key<>(obj: *const dpp_block_epoch_Epoch) -> *mut crate::fermented::generics::Arr_u8_2 { (*obj).key } - - #[doc = "FFI-representation of the [`EpochIndex`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_block_epoch_EpochIndex(u16); - - impl ferment::FFIConversionFrom for dpp_block_epoch_EpochIndex { - unsafe fn ffi_from_const(ffi: *const dpp_block_epoch_EpochIndex) -> dpp::block::epoch::EpochIndex { - let ffi_ref = &*ffi; - ffi_ref.0 - } - } - - impl ferment::FFIConversionTo for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const(obj: dpp::block::epoch::EpochIndex) -> *const dpp_block_epoch_EpochIndex { ferment::boxed(dpp_block_epoch_EpochIndex(obj)) } } - - impl Drop for dpp_block_epoch_EpochIndex { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor<>(o_0: u16) -> *mut dpp_block_epoch_EpochIndex { ferment::boxed(dpp_block_epoch_EpochIndex(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy<>(ffi: *mut dpp_block_epoch_EpochIndex) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0<>(obj: *const dpp_block_epoch_EpochIndex) -> u16 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0<>(obj: *const dpp_block_epoch_EpochIndex) -> u16 { (*obj).0 } - } - - pub mod finalized_epoch_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod block_info { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`BlockInfo`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_block_block_info_BlockInfo { - pub time_ms: *mut crate::fermented::types::dpp::prelude::dpp_prelude_TimestampMillis, - pub height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, - pub core_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, - pub epoch: *mut crate::fermented::types::dpp::block::epoch::dpp_block_epoch_Epoch, - } - - impl ferment::FFIConversionFrom for dpp_block_block_info_BlockInfo { - unsafe fn ffi_from_const(ffi: *const dpp_block_block_info_BlockInfo) -> dpp::block::block_info::BlockInfo { - let ffi_ref = &*ffi; - dpp::block::block_info::BlockInfo { time_ms: >::ffi_from(ffi_ref.time_ms), height: >::ffi_from(ffi_ref.height), core_height: >::ffi_from(ffi_ref.core_height), epoch: >::ffi_from(ffi_ref.epoch) } - } - } - - impl ferment::FFIConversionTo for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const(obj: dpp::block::block_info::BlockInfo) -> *const dpp_block_block_info_BlockInfo { ferment::boxed(dpp_block_block_info_BlockInfo { time_ms: >::ffi_to(obj.time_ms), height: >::ffi_to(obj.height), core_height: >::ffi_to(obj.core_height), epoch: >::ffi_to(obj.epoch) }) } } - - impl Drop for dpp_block_block_info_BlockInfo { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.time_ms); - ferment::unbox_any(ffi_ref.height); - ferment::unbox_any(ffi_ref.core_height); - ferment::unbox_any(ffi_ref.epoch); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor<>(time_ms: *mut crate::fermented::types::dpp::prelude::dpp_prelude_TimestampMillis, height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, core_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, epoch: *mut crate::fermented::types::dpp::block::epoch::dpp_block_epoch_Epoch) -> *mut dpp_block_block_info_BlockInfo { ferment::boxed(dpp_block_block_info_BlockInfo { time_ms, height, core_height, epoch }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy<>(ffi: *mut dpp_block_block_info_BlockInfo) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms<>(obj: *const dpp_block_block_info_BlockInfo) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_TimestampMillis { (*obj).time_ms } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height<>(obj: *const dpp_block_block_info_BlockInfo) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { (*obj).height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height<>(obj: *const dpp_block_block_info_BlockInfo) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { (*obj).core_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch<>(obj: *const dpp_block_block_info_BlockInfo) -> *mut crate::fermented::types::dpp::block::epoch::dpp_block_epoch_Epoch { (*obj).epoch } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms<>(obj: *const dpp_block_block_info_BlockInfo) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_TimestampMillis { (*obj).time_ms } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height<>(obj: *const dpp_block_block_info_BlockInfo) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { (*obj).height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height<>(obj: *const dpp_block_block_info_BlockInfo) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { (*obj).core_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch<>(obj: *const dpp_block_block_info_BlockInfo) -> *mut crate::fermented::types::dpp::block::epoch::dpp_block_epoch_Epoch { (*obj).epoch } - } - } - - pub mod errors { - use crate as dash_sdk_bindings; - - pub mod consensus { - use crate as dash_sdk_bindings; - - pub mod fee { use crate as dash_sdk_bindings; } - - pub mod basic { - use crate as dash_sdk_bindings; - - pub mod state_transition { use crate as dash_sdk_bindings; } - - pub mod group { use crate as dash_sdk_bindings; } - - pub mod decode { use crate as dash_sdk_bindings; } - - pub mod unsupported_version_error { use crate as dash_sdk_bindings; } - - pub mod document { use crate as dash_sdk_bindings; } - - pub mod token { use crate as dash_sdk_bindings; } - - pub mod data_contract { use crate as dash_sdk_bindings; } - - pub mod identity { use crate as dash_sdk_bindings; } - - pub mod json_schema_error { use crate as dash_sdk_bindings; } - - pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings; } - } - - pub mod signature { use crate as dash_sdk_bindings; } - - pub mod state { - use crate as dash_sdk_bindings; - - pub mod data_contract { use crate as dash_sdk_bindings; } - - pub mod shielded { use crate as dash_sdk_bindings; } - - pub mod address_funds { use crate as dash_sdk_bindings; } - - pub mod group { use crate as dash_sdk_bindings; } - - pub mod data_trigger { use crate as dash_sdk_bindings; } - - pub mod token { use crate as dash_sdk_bindings; } - - pub mod identity { use crate as dash_sdk_bindings; } - - pub mod document { use crate as dash_sdk_bindings; } - - pub mod voting { use crate as dash_sdk_bindings; } - - pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings; } - } - } - - pub mod non_consensus_error { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "fixtures-and-mocks")] - pub mod tests { - use crate as dash_sdk_bindings; - - pub mod fixtures { use crate as dash_sdk_bindings; } - } - - pub mod voting { - use crate as dash_sdk_bindings; - - pub mod votes { - use crate as dash_sdk_bindings; - - pub mod resource_vote { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`ResourceVoteV0`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { - pub vote_poll: *mut crate::fermented::types::dpp::voting::vote_polls::dpp_voting_vote_polls_VotePoll, - pub resource_vote_choice: *mut crate::fermented::types::dpp::voting::vote_choices::resource_vote_choice::dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice, - } - - impl ferment::FFIConversionFrom for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { - unsafe fn ffi_from_const(ffi: *const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp::voting::votes::resource_vote::v0::ResourceVoteV0 { - let ffi_ref = &*ffi; - dpp::voting::votes::resource_vote::v0::ResourceVoteV0 { vote_poll: >::ffi_from(ffi_ref.vote_poll), resource_vote_choice: >::ffi_from(ffi_ref.resource_vote_choice) } - } - } - - impl ferment::FFIConversionTo for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const(obj: dpp::voting::votes::resource_vote::v0::ResourceVoteV0) -> *const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment::boxed(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll: >::ffi_to(obj.vote_poll), resource_vote_choice: >::ffi_to(obj.resource_vote_choice) }) } } - - impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.vote_poll); - ferment::unbox_any(ffi_ref.resource_vote_choice); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor<>(vote_poll: *mut crate::fermented::types::dpp::voting::vote_polls::dpp_voting_vote_polls_VotePoll, resource_vote_choice: *mut crate::fermented::types::dpp::voting::vote_choices::resource_vote_choice::dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> *mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment::boxed(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll, resource_vote_choice }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy<>(ffi: *mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll<>(obj: *const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> *mut crate::fermented::types::dpp::voting::vote_polls::dpp_voting_vote_polls_VotePoll { (*obj).vote_poll } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice<>(obj: *const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> *mut crate::fermented::types::dpp::voting::vote_choices::resource_vote_choice::dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (*obj).resource_vote_choice } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll<>(obj: *const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> *mut crate::fermented::types::dpp::voting::vote_polls::dpp_voting_vote_polls_VotePoll { (*obj).vote_poll } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice<>(obj: *const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> *mut crate::fermented::types::dpp::voting::vote_choices::resource_vote_choice::dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (*obj).resource_vote_choice } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_voting_votes_resource_vote_ResourceVote { V0(*mut crate::fermented::types::dpp::voting::votes::resource_vote::v0::dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } - - impl ferment::FFIConversionFrom for dpp_voting_votes_resource_vote_ResourceVote { - unsafe fn ffi_from_const(ffi: *const dpp_voting_votes_resource_vote_ResourceVote) -> dpp::voting::votes::resource_vote::ResourceVote { - let ffi_ref = &*ffi; - match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote::V0(o_0) => dpp::voting::votes::resource_vote::ResourceVote::V0(>::ffi_from(*o_0)) } - } - } - - impl ferment::FFIConversionTo for dpp_voting_votes_resource_vote_ResourceVote { - unsafe fn ffi_to_const(obj: dpp::voting::votes::resource_vote::ResourceVote) -> *const dpp_voting_votes_resource_vote_ResourceVote { - ferment::boxed(match obj { - dpp::voting::votes::resource_vote::ResourceVote::V0(o_0) => dpp_voting_votes_resource_vote_ResourceVote::V0(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_voting_votes_resource_vote_ResourceVote { - fn drop(&mut self) { - unsafe { - match self { - dpp_voting_votes_resource_vote_ResourceVote::V0(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor(o_o_0: *mut crate::fermented::types::dpp::voting::votes::resource_vote::v0::dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> *mut dpp_voting_votes_resource_vote_ResourceVote { ferment::boxed(dpp_voting_votes_resource_vote_ResourceVote::V0(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy<>(ffi: *mut dpp_voting_votes_resource_vote_ResourceVote) { ferment::unbox_any(ffi); } - } - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_voting_votes_Vote { ResourceVote(*mut crate::fermented::types::dpp::voting::votes::resource_vote::dpp_voting_votes_resource_vote_ResourceVote) } - - impl ferment::FFIConversionFrom for dpp_voting_votes_Vote { - unsafe fn ffi_from_const(ffi: *const dpp_voting_votes_Vote) -> dpp::voting::votes::Vote { - let ffi_ref = &*ffi; - match ffi_ref { dpp_voting_votes_Vote::ResourceVote(o_0) => dpp::voting::votes::Vote::ResourceVote(>::ffi_from(*o_0)) } - } - } - - impl ferment::FFIConversionTo for dpp_voting_votes_Vote { - unsafe fn ffi_to_const(obj: dpp::voting::votes::Vote) -> *const dpp_voting_votes_Vote { - ferment::boxed(match obj { - dpp::voting::votes::Vote::ResourceVote(o_0) => dpp_voting_votes_Vote::ResourceVote(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_voting_votes_Vote { - fn drop(&mut self) { - unsafe { - match self { - dpp_voting_votes_Vote::ResourceVote(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor(o_o_0: *mut crate::fermented::types::dpp::voting::votes::resource_vote::dpp_voting_votes_resource_vote_ResourceVote) -> *mut dpp_voting_votes_Vote { ferment::boxed(dpp_voting_votes_Vote::ResourceVote(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy<>(ffi: *mut dpp_voting_votes_Vote) { ferment::unbox_any(ffi); } - } - - pub mod vote_info_storage { - use crate as dash_sdk_bindings; - - pub mod contested_document_vote_poll_winner_info { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner, WonByIdentity(*mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier), Locked } - - impl ferment::FFIConversionFrom for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { - unsafe fn ffi_from_const(ffi: *const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo { - let ffi_ref = &*ffi; - match ffi_ref { - dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::NoWinner => dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo::NoWinner, - dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::WonByIdentity(o_0) => dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo::WonByIdentity(>::ffi_from(*o_0)), - dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::Locked => dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo::Locked - } - } - } - - impl ferment::FFIConversionTo for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { - unsafe fn ffi_to_const(obj: dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo) -> *const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { - ferment::boxed(match obj { - dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo::NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::NoWinner, - dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo::WonByIdentity(o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::WonByIdentity(>::ffi_to(o_0)), - dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo::Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::Locked, - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { - fn drop(&mut self) { - unsafe { - match self { - dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::NoWinner => {} - dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::WonByIdentity(o_0) => { ferment::unbox_any(*o_0); } - dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::Locked => {} - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor() -> *mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment::boxed(dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::NoWinner {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor(o_o_0: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment::boxed(dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::WonByIdentity(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor() -> *mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment::boxed(dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo::Locked {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy<>(ffi: *mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment::unbox_any(ffi); } - } - - pub mod contested_document_vote_poll_stored_info { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod vote_polls { - use crate as dash_sdk_bindings; - - pub mod contested_document_resource_vote_poll { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { - pub contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub document_type_name: *mut std::os::raw::c_char, - pub index_name: *mut std::os::raw::c_char, - pub index_values: *mut crate::fermented::generics::Vec_platform_value_Value, - } - - impl ferment::FFIConversionFrom for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { - unsafe fn ffi_from_const(ffi: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp::voting::vote_polls::contested_document_resource_vote_poll::ContestedDocumentResourceVotePoll { - let ffi_ref = &*ffi; - dpp::voting::vote_polls::contested_document_resource_vote_poll::ContestedDocumentResourceVotePoll { contract_id: >::ffi_from(ffi_ref.contract_id), document_type_name: >::ffi_from(ffi_ref.document_type_name), index_name: >::ffi_from(ffi_ref.index_name), index_values: >>::ffi_from(ffi_ref.index_values) } - } - } - - impl ferment::FFIConversionTo for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { - unsafe fn ffi_to_const(obj: dpp::voting::vote_polls::contested_document_resource_vote_poll::ContestedDocumentResourceVotePoll) -> *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment::boxed(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id: >::ffi_to(obj.contract_id), document_type_name: >::ffi_to(obj.document_type_name), index_name: >::ffi_to(obj.index_name), index_values: >>::ffi_to(obj.index_values) }) } - } - - impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.contract_id); - ferment::unbox_string(ffi_ref.document_type_name); - ferment::unbox_string(ffi_ref.index_name); - ferment::unbox_any(ffi_ref.index_values); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor<>(contract_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, document_type_name: *mut std::os::raw::c_char, index_name: *mut std::os::raw::c_char, index_values: *mut crate::fermented::generics::Vec_platform_value_Value) -> *mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment::boxed(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id, document_type_name, index_name, index_values }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy<>(ffi: *mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id<>(obj: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).contract_id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name<>(obj: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut std::os::raw::c_char { (*obj).document_type_name } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name<>(obj: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut std::os::raw::c_char { (*obj).index_name } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values<>(obj: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut crate::fermented::generics::Vec_platform_value_Value { (*obj).index_values } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id<>(obj: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).contract_id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name<>(obj: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut std::os::raw::c_char { (*obj).document_type_name } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name<>(obj: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut std::os::raw::c_char { (*obj).index_name } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values<>(obj: *const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut crate::fermented::generics::Vec_platform_value_Value { (*obj).index_values } - } - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll(*mut crate::fermented::types::dpp::voting::vote_polls::contested_document_resource_vote_poll::dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } - - impl ferment::FFIConversionFrom for dpp_voting_vote_polls_VotePoll { - unsafe fn ffi_from_const(ffi: *const dpp_voting_vote_polls_VotePoll) -> dpp::voting::vote_polls::VotePoll { - let ffi_ref = &*ffi; - match ffi_ref { dpp_voting_vote_polls_VotePoll::ContestedDocumentResourceVotePoll(o_0) => dpp::voting::vote_polls::VotePoll::ContestedDocumentResourceVotePoll(>::ffi_from(*o_0)) } - } - } - - impl ferment::FFIConversionTo for dpp_voting_vote_polls_VotePoll { - unsafe fn ffi_to_const(obj: dpp::voting::vote_polls::VotePoll) -> *const dpp_voting_vote_polls_VotePoll { - ferment::boxed(match obj { - dpp::voting::vote_polls::VotePoll::ContestedDocumentResourceVotePoll(o_0) => dpp_voting_vote_polls_VotePoll::ContestedDocumentResourceVotePoll(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_voting_vote_polls_VotePoll { - fn drop(&mut self) { - unsafe { - match self { - dpp_voting_vote_polls_VotePoll::ContestedDocumentResourceVotePoll(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor(o_o_0: *mut crate::fermented::types::dpp::voting::vote_polls::contested_document_resource_vote_poll::dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> *mut dpp_voting_vote_polls_VotePoll { ferment::boxed(dpp_voting_vote_polls_VotePoll::ContestedDocumentResourceVotePoll(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy<>(ffi: *mut dpp_voting_vote_polls_VotePoll) { ferment::unbox_any(ffi); } - } - - pub mod vote_choices { - use crate as dash_sdk_bindings; - - pub mod resource_vote_choice { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity(*mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier), Abstain, Lock } - - impl ferment::FFIConversionFrom for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { - unsafe fn ffi_from_const(ffi: *const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp::voting::vote_choices::resource_vote_choice::ResourceVoteChoice { - let ffi_ref = &*ffi; - match ffi_ref { - dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::TowardsIdentity(o_0) => dpp::voting::vote_choices::resource_vote_choice::ResourceVoteChoice::TowardsIdentity(>::ffi_from(*o_0)), - dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::Abstain => dpp::voting::vote_choices::resource_vote_choice::ResourceVoteChoice::Abstain, - dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::Lock => dpp::voting::vote_choices::resource_vote_choice::ResourceVoteChoice::Lock - } - } - } - - impl ferment::FFIConversionTo for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { - unsafe fn ffi_to_const(obj: dpp::voting::vote_choices::resource_vote_choice::ResourceVoteChoice) -> *const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { - ferment::boxed(match obj { - dpp::voting::vote_choices::resource_vote_choice::ResourceVoteChoice::TowardsIdentity(o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::TowardsIdentity(>::ffi_to(o_0)), - dpp::voting::vote_choices::resource_vote_choice::ResourceVoteChoice::Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::Abstain, - dpp::voting::vote_choices::resource_vote_choice::ResourceVoteChoice::Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::Lock, - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { - fn drop(&mut self) { - unsafe { - match self { - dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::TowardsIdentity(o_0) => { ferment::unbox_any(*o_0); } - dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::Abstain => {} - dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::Lock => {} - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor(o_o_0: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment::boxed(dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::TowardsIdentity(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor() -> *mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment::boxed(dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::Abstain {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor() -> *mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment::boxed(dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice::Lock {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy<>(ffi: *mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment::unbox_any(ffi); } - } - } - - pub mod contender_structs { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod contender { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { - pub identity_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub serialized_document: *mut crate::fermented::generics::Vec_u8, - pub vote_tally: *mut u32, - } - - impl ferment::FFIConversionFrom for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { - unsafe fn ffi_from_const(ffi: *const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp::voting::contender_structs::contender::v0::ContenderWithSerializedDocumentV0 { - let ffi_ref = &*ffi; - dpp::voting::contender_structs::contender::v0::ContenderWithSerializedDocumentV0 { identity_id: >::ffi_from(ffi_ref.identity_id), serialized_document: >>::ffi_from_opt(ffi_ref.serialized_document), vote_tally: ferment::from_opt_primitive(ffi_ref.vote_tally) } - } - } - - impl ferment::FFIConversionTo for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const(obj: dpp::voting::contender_structs::contender::v0::ContenderWithSerializedDocumentV0) -> *const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment::boxed(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id: >::ffi_to(obj.identity_id), serialized_document: >>::ffi_to_opt(obj.serialized_document), vote_tally: ferment::to_opt_primitive(obj.vote_tally) }) } } - - impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.identity_id); - ferment::unbox_any_opt(ffi_ref.serialized_document); - ferment::destroy_opt_primitive(ffi_ref.vote_tally); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor<>(identity_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, serialized_document: *mut crate::fermented::generics::Vec_u8, vote_tally: *mut u32) -> *mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment::boxed(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id, serialized_document, vote_tally }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy<>(ffi: *mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id<>(obj: *const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).identity_id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document<>(obj: *const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> *mut crate::fermented::generics::Vec_u8 { (*obj).serialized_document } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally<>(obj: *const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> *mut u32 { (*obj).vote_tally } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id<>(obj: *const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).identity_id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document<>(obj: *const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> *mut crate::fermented::generics::Vec_u8 { (*obj).serialized_document } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally<>(obj: *const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> *mut u32 { (*obj).vote_tally } - } - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0(*mut crate::fermented::types::dpp::voting::contender_structs::contender::v0::dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } - - impl ferment::FFIConversionFrom for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { - unsafe fn ffi_from_const(ffi: *const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp::voting::contender_structs::contender::ContenderWithSerializedDocument { - let ffi_ref = &*ffi; - match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument::V0(o_0) => dpp::voting::contender_structs::contender::ContenderWithSerializedDocument::V0(>::ffi_from(*o_0)) } - } - } - - impl ferment::FFIConversionTo for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { - unsafe fn ffi_to_const(obj: dpp::voting::contender_structs::contender::ContenderWithSerializedDocument) -> *const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { - ferment::boxed(match obj { - dpp::voting::contender_structs::contender::ContenderWithSerializedDocument::V0(o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument::V0(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { - fn drop(&mut self) { - unsafe { - match self { - dpp_voting_contender_structs_contender_ContenderWithSerializedDocument::V0(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor(o_o_0: *mut crate::fermented::types::dpp::voting::contender_structs::contender::v0::dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> *mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment::boxed(dpp_voting_contender_structs_contender_ContenderWithSerializedDocument::V0(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy<>(ffi: *mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment::unbox_any(ffi); } - } - } - } - - pub mod prelude { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`BlockHeight`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_prelude_BlockHeight(u64); - - impl ferment::FFIConversionFrom for dpp_prelude_BlockHeight { - unsafe fn ffi_from_const(ffi: *const dpp_prelude_BlockHeight) -> dpp::prelude::BlockHeight { - let ffi_ref = &*ffi; - ffi_ref.0 - } - } - - impl ferment::FFIConversionTo for dpp_prelude_BlockHeight { unsafe fn ffi_to_const(obj: dpp::prelude::BlockHeight) -> *const dpp_prelude_BlockHeight { ferment::boxed(dpp_prelude_BlockHeight(obj)) } } - - impl Drop for dpp_prelude_BlockHeight { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor<>(o_0: u64) -> *mut dpp_prelude_BlockHeight { ferment::boxed(dpp_prelude_BlockHeight(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy<>(ffi: *mut dpp_prelude_BlockHeight) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0<>(obj: *const dpp_prelude_BlockHeight) -> u64 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0<>(obj: *const dpp_prelude_BlockHeight) -> u64 { (*obj).0 } - - #[doc = "FFI-representation of the [`TimestampMillis`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_prelude_TimestampMillis(u64); - - impl ferment::FFIConversionFrom for dpp_prelude_TimestampMillis { - unsafe fn ffi_from_const(ffi: *const dpp_prelude_TimestampMillis) -> dpp::prelude::TimestampMillis { - let ffi_ref = &*ffi; - ffi_ref.0 - } - } - - impl ferment::FFIConversionTo for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const(obj: dpp::prelude::TimestampMillis) -> *const dpp_prelude_TimestampMillis { ferment::boxed(dpp_prelude_TimestampMillis(obj)) } } - - impl Drop for dpp_prelude_TimestampMillis { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor<>(o_0: u64) -> *mut dpp_prelude_TimestampMillis { ferment::boxed(dpp_prelude_TimestampMillis(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy<>(ffi: *mut dpp_prelude_TimestampMillis) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0<>(obj: *const dpp_prelude_TimestampMillis) -> u64 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0<>(obj: *const dpp_prelude_TimestampMillis) -> u64 { (*obj).0 } - - #[doc = "FFI-representation of the [`CoreBlockHeight`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_prelude_CoreBlockHeight(u32); - - impl ferment::FFIConversionFrom for dpp_prelude_CoreBlockHeight { - unsafe fn ffi_from_const(ffi: *const dpp_prelude_CoreBlockHeight) -> dpp::prelude::CoreBlockHeight { - let ffi_ref = &*ffi; - ffi_ref.0 - } - } - - impl ferment::FFIConversionTo for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const(obj: dpp::prelude::CoreBlockHeight) -> *const dpp_prelude_CoreBlockHeight { ferment::boxed(dpp_prelude_CoreBlockHeight(obj)) } } - - impl Drop for dpp_prelude_CoreBlockHeight { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor<>(o_0: u32) -> *mut dpp_prelude_CoreBlockHeight { ferment::boxed(dpp_prelude_CoreBlockHeight(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy<>(ffi: *mut dpp_prelude_CoreBlockHeight) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0<>(obj: *const dpp_prelude_CoreBlockHeight) -> u32 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0<>(obj: *const dpp_prelude_CoreBlockHeight) -> u32 { (*obj).0 } - - #[doc = "FFI-representation of the [`Revision`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_prelude_Revision(u64); - - impl ferment::FFIConversionFrom for dpp_prelude_Revision { - unsafe fn ffi_from_const(ffi: *const dpp_prelude_Revision) -> dpp::prelude::Revision { - let ffi_ref = &*ffi; - ffi_ref.0 - } - } - - impl ferment::FFIConversionTo for dpp_prelude_Revision { unsafe fn ffi_to_const(obj: dpp::prelude::Revision) -> *const dpp_prelude_Revision { ferment::boxed(dpp_prelude_Revision(obj)) } } - - impl Drop for dpp_prelude_Revision { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_Revision_ctor<>(o_0: u64) -> *mut dpp_prelude_Revision { ferment::boxed(dpp_prelude_Revision(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_Revision_destroy<>(ffi: *mut dpp_prelude_Revision) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_Revision_get_0<>(obj: *const dpp_prelude_Revision) -> u64 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dpp_prelude_Revision_set_0<>(obj: *const dpp_prelude_Revision) -> u64 { (*obj).0 } - } - - pub mod address_funds { - use crate as dash_sdk_bindings; - - #[cfg(feature = "shielded-client")] - pub mod orchard_address { - use crate as dash_sdk_bindings; - } - - pub mod platform_address { use crate as dash_sdk_bindings; } - - pub mod witness { use crate as dash_sdk_bindings; } - - pub mod fee_strategy { - use crate as dash_sdk_bindings; - - pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings; } - } - - pub mod witness_verification_operations { use crate as dash_sdk_bindings; } - - #[cfg(feature = "json-conversion")] - pub mod serde_helpers { - use crate as dash_sdk_bindings; - - pub mod address_output_singular { use crate as dash_sdk_bindings; } - - pub mod address_output_map_required_amount { use crate as dash_sdk_bindings; } - - pub mod address_input_map { use crate as dash_sdk_bindings; } - - pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings; } - } - } - - pub mod asset_lock { - use crate as dash_sdk_bindings; - - pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings; } - } - - pub mod serialization { - use crate as dash_sdk_bindings; - - #[cfg(feature = "serde-conversion")] - pub mod serde_bytes { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "json-conversion")] - pub mod json { - use crate as dash_sdk_bindings; - - pub mod safe_integer_map { use crate as dash_sdk_bindings; } - - pub mod safe_integer { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "serde-conversion")] - pub mod serde_bytes_var { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "state-transitions")] - pub mod state_transition { - use crate as dash_sdk_bindings; - - pub mod abstract_state_transition { use crate as dash_sdk_bindings; } - - pub mod traits { use crate as dash_sdk_bindings; } - - pub mod state_transitions { - use crate as dash_sdk_bindings; - - pub mod identity { - use crate as dash_sdk_bindings; - - pub mod public_key_in_creation { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings; } - - #[cfg(feature = "state-transition-signing")] - pub mod from_public_key_signed_external { - use crate as dash_sdk_bindings; - } - - pub mod duplicated_keys_witness { use crate as dash_sdk_bindings; } - - #[cfg(feature = "state-transition-signing")] - pub mod from_public_key_signed_with_private_key { - use crate as dash_sdk_bindings; - } - - pub mod hash { use crate as dash_sdk_bindings; } - - pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings; } - } - } - - pub mod identity_credit_withdrawal_transition { - use crate as dash_sdk_bindings; - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v1 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod identity_create_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - } - - pub mod identity_credit_transfer_to_addresses_transition { - use crate as dash_sdk_bindings; - - pub mod fields { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod identity_credit_transfer_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod fields { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - } - - pub mod common_fields { use crate as dash_sdk_bindings; } - - pub mod identity_create_from_addresses_transition { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod identity_topup_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod masternode_vote_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod fields { use crate as dash_sdk_bindings; } - } - - pub mod identity_topup_from_addresses_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod identity_update_transition { - use crate as dash_sdk_bindings; - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod fields { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(feature = "json-conversion")] - pub mod json_conversion { - use crate as dash_sdk_bindings; - } - } - } - } - - pub mod document { - use crate as dash_sdk_bindings; - - pub mod batch_transition { - use crate as dash_sdk_bindings; - - pub mod resolvers { use crate as dash_sdk_bindings; } - - pub mod v1 { use crate as dash_sdk_bindings; } - - pub mod fields { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod batched_transition { - use crate as dash_sdk_bindings; - - pub mod token_mint_transition { - use crate as dash_sdk_bindings; - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod v0_methods { use crate as dash_sdk_bindings; } - } - } - - pub mod document_base_transition { - use crate as dash_sdk_bindings; - - pub mod v1 { use crate as dash_sdk_bindings; } - - pub mod fields { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_purchase_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_create_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod resolvers { use crate as dash_sdk_bindings; } - - pub mod token_destroy_frozen_funds_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod token_transition_action_type { use crate as dash_sdk_bindings; } - - pub mod token_transition { use crate as dash_sdk_bindings; } - - pub mod document_delete_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_config_update_transition { - use crate as dash_sdk_bindings; - - pub mod v0_methods { use crate as dash_sdk_bindings; } - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_replace_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_freeze_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod token_transfer_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod document_transfer_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_emergency_action_transition { - use crate as dash_sdk_bindings; - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_direct_purchase_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod token_claim_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod document_update_price_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_burn_transition { - use crate as dash_sdk_bindings; - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod document_transition { use crate as dash_sdk_bindings; } - - pub mod token_set_price_for_direct_purchase_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod v0_methods { use crate as dash_sdk_bindings; } - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod document_transition_action_type { use crate as dash_sdk_bindings; } - - pub mod token_unfreeze_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod validate_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod token_base_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod fields { use crate as dash_sdk_bindings; } - } - } - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "validation")] - pub mod validation { - use crate as dash_sdk_bindings; - - pub mod find_duplicates_by_id { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod validate_basic_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - } - } - - pub mod shielded { - use crate as dash_sdk_bindings; - - pub mod shielded_transfer_transition { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - - pub mod methods { use crate as dash_sdk_bindings; } - } - - pub mod shield_transition { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - - pub mod methods { use crate as dash_sdk_bindings; } - } - - pub mod shield_from_asset_lock_transition { - use crate as dash_sdk_bindings; - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod identity_create_from_shielded_pool_transition { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - } - - pub mod unshield_transition { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - } - - pub mod shielded_withdrawal_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - } - - pub mod common_validation { use crate as dash_sdk_bindings; } - } - - pub mod contract { - use crate as dash_sdk_bindings; - - pub mod data_contract_create_transition { - use crate as dash_sdk_bindings; - - #[cfg(feature = "json-conversion")] - pub mod json_conversion { - use crate as dash_sdk_bindings; - } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod common_fields { use crate as dash_sdk_bindings; } - - pub mod data_contract_update_transition { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - } - } - - pub mod common_fields { use crate as dash_sdk_bindings; } - - pub mod address_funds { - use crate as dash_sdk_bindings; - - pub mod address_credit_withdrawal_transition { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod methods { use crate as dash_sdk_bindings; } - } - - pub mod address_funding_from_asset_lock_transition { - use crate as dash_sdk_bindings; - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod address_funds_transfer_transition { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod state_transition_validation { use crate as dash_sdk_bindings; } - } - - pub mod methods { use crate as dash_sdk_bindings; } - } - } - } - - pub mod state_transition_types { use crate as dash_sdk_bindings; } - - pub mod errors { use crate as dash_sdk_bindings; } - - pub mod serialization { use crate as dash_sdk_bindings; } - } - - pub mod shielded { - use crate as dash_sdk_bindings; - - pub mod sighash { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod memo { use crate as dash_sdk_bindings; } - - #[cfg(feature = "shielded-client")] - pub mod builder { - use crate as dash_sdk_bindings; - - pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings; } - - pub mod shield_from_asset_lock { use crate as dash_sdk_bindings; } - - pub mod shielded_transfer { use crate as dash_sdk_bindings; } - - pub mod shield { use crate as dash_sdk_bindings; } - - pub mod unshield { use crate as dash_sdk_bindings; } - - pub mod shielded_withdrawal { use crate as dash_sdk_bindings; } - } - - pub mod compute_minimum_shielded_fee { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod document { - use crate as dash_sdk_bindings; - - pub mod serialization_traits { - use crate as dash_sdk_bindings; - - #[cfg(feature = "json-conversion")] - pub mod json_conversion { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "value-conversion")] - pub mod platform_value_conversion { - use crate as dash_sdk_bindings; - } - - pub mod platform_serialization_conversion { - use crate as dash_sdk_bindings; - - pub mod serialize { use crate as dash_sdk_bindings; } - - pub mod deserialize { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "document-cbor-conversion")] - pub mod cbor_conversion { - use crate as dash_sdk_bindings; - } - } - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(feature = "document-cbor-conversion")] - pub mod cbor_conversion { - use crate as dash_sdk_bindings; - } - - #[doc = "FFI-representation of the [`DocumentV0`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_document_v0_DocumentV0 { - pub id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub owner_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub properties: *mut crate::fermented::generics::std_collections_Map_keys_String_values_platform_value_Value, - pub revision: *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision, - pub created_at: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, - pub updated_at: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, - pub transferred_at: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, - pub created_at_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, - pub updated_at_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, - pub transferred_at_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, - pub created_at_core_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, - pub updated_at_core_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, - pub transferred_at_core_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, - pub creator_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - } - - impl ferment::FFIConversionFrom for dpp_document_v0_DocumentV0 { - unsafe fn ffi_from_const(ffi: *const dpp_document_v0_DocumentV0) -> dpp::document::v0::DocumentV0 { - let ffi_ref = &*ffi; - dpp::document::v0::DocumentV0 { - id: >::ffi_from(ffi_ref.id), - owner_id: >::ffi_from(ffi_ref.owner_id), - properties: >>::ffi_from(ffi_ref.properties), - revision: >::ffi_from_opt(ffi_ref.revision), - created_at: >::ffi_from_opt(ffi_ref.created_at), - updated_at: >::ffi_from_opt(ffi_ref.updated_at), - transferred_at: >::ffi_from_opt(ffi_ref.transferred_at), - created_at_block_height: >::ffi_from_opt(ffi_ref.created_at_block_height), - updated_at_block_height: >::ffi_from_opt(ffi_ref.updated_at_block_height), - transferred_at_block_height: >::ffi_from_opt(ffi_ref.transferred_at_block_height), - created_at_core_block_height: >::ffi_from_opt(ffi_ref.created_at_core_block_height), - updated_at_core_block_height: >::ffi_from_opt(ffi_ref.updated_at_core_block_height), - transferred_at_core_block_height: >::ffi_from_opt(ffi_ref.transferred_at_core_block_height), - creator_id: >::ffi_from_opt(ffi_ref.creator_id), - } - } - } - - impl ferment::FFIConversionTo for dpp_document_v0_DocumentV0 { - unsafe fn ffi_to_const(obj: dpp::document::v0::DocumentV0) -> *const dpp_document_v0_DocumentV0 { - ferment::boxed(dpp_document_v0_DocumentV0 { - id: >::ffi_to(obj.id), - owner_id: >::ffi_to(obj.owner_id), - properties: >>::ffi_to(obj.properties), - revision: >::ffi_to_opt(obj.revision), - created_at: >::ffi_to_opt(obj.created_at), - updated_at: >::ffi_to_opt(obj.updated_at), - transferred_at: >::ffi_to_opt(obj.transferred_at), - created_at_block_height: >::ffi_to_opt(obj.created_at_block_height), - updated_at_block_height: >::ffi_to_opt(obj.updated_at_block_height), - transferred_at_block_height: >::ffi_to_opt(obj.transferred_at_block_height), - created_at_core_block_height: >::ffi_to_opt(obj.created_at_core_block_height), - updated_at_core_block_height: >::ffi_to_opt(obj.updated_at_core_block_height), - transferred_at_core_block_height: >::ffi_to_opt(obj.transferred_at_core_block_height), - creator_id: >::ffi_to_opt(obj.creator_id), - }) - } - } - - impl Drop for dpp_document_v0_DocumentV0 { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.id); - ferment::unbox_any(ffi_ref.owner_id); - ferment::unbox_any(ffi_ref.properties); - ferment::unbox_any_opt(ffi_ref.revision); - ferment::unbox_any_opt(ffi_ref.created_at); - ferment::unbox_any_opt(ffi_ref.updated_at); - ferment::unbox_any_opt(ffi_ref.transferred_at); - ferment::unbox_any_opt(ffi_ref.created_at_block_height); - ferment::unbox_any_opt(ffi_ref.updated_at_block_height); - ferment::unbox_any_opt(ffi_ref.transferred_at_block_height); - ferment::unbox_any_opt(ffi_ref.created_at_core_block_height); - ferment::unbox_any_opt(ffi_ref.updated_at_core_block_height); - ferment::unbox_any_opt(ffi_ref.transferred_at_core_block_height); - ferment::unbox_any_opt(ffi_ref.creator_id); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor<>(id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, owner_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, properties: *mut crate::fermented::generics::std_collections_Map_keys_String_values_platform_value_Value, revision: *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision, created_at: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, updated_at: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, transferred_at: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, created_at_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, updated_at_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, transferred_at_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight, created_at_core_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, updated_at_core_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, transferred_at_core_block_height: *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight, creator_id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut dpp_document_v0_DocumentV0 { ferment::boxed(dpp_document_v0_DocumentV0 { id, owner_id, properties, revision, created_at, updated_at, transferred_at, created_at_block_height, updated_at_block_height, transferred_at_block_height, created_at_core_block_height, updated_at_core_block_height, transferred_at_core_block_height, creator_id }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy<>(ffi: *mut dpp_document_v0_DocumentV0) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).owner_id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::generics::std_collections_Map_keys_String_values_platform_value_Value { (*obj).properties } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision { (*obj).revision } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { (*obj).created_at } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { (*obj).updated_at } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { (*obj).transferred_at } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { (*obj).created_at_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { (*obj).updated_at_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { (*obj).transferred_at_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { (*obj).created_at_core_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { (*obj).updated_at_core_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { (*obj).transferred_at_core_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).creator_id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).owner_id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::generics::std_collections_Map_keys_String_values_platform_value_Value { (*obj).properties } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision { (*obj).revision } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { (*obj).created_at } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { (*obj).updated_at } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { (*obj).transferred_at } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { (*obj).created_at_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { (*obj).updated_at_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_BlockHeight { (*obj).transferred_at_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { (*obj).created_at_core_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { (*obj).updated_at_core_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_CoreBlockHeight { (*obj).transferred_at_core_block_height } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id<>(obj: *const dpp_document_v0_DocumentV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).creator_id } - - #[cfg(feature = "value-conversion")] - pub mod platform_value_conversion { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "json-conversion")] - pub mod json_conversion { - use crate as dash_sdk_bindings; - } - - pub mod serialize { use crate as dash_sdk_bindings; } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - - #[cfg(feature = "extended-document")] - pub mod extended_document { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod fields { use crate as dash_sdk_bindings; } - } - - pub mod document_methods { - use crate as dash_sdk_bindings; - - pub mod get_raw_for_contract { use crate as dash_sdk_bindings; } - - pub mod get_raw_for_document_type { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod hash { use crate as dash_sdk_bindings; } - - pub mod is_equal_ignoring_timestamps { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod fields { use crate as dash_sdk_bindings; } - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_document_Document { V0(*mut crate::fermented::types::dpp::document::v0::dpp_document_v0_DocumentV0) } - - impl ferment::FFIConversionFrom for dpp_document_Document { - unsafe fn ffi_from_const(ffi: *const dpp_document_Document) -> dpp::document::Document { - let ffi_ref = &*ffi; - match ffi_ref { dpp_document_Document::V0(o_0) => dpp::document::Document::V0(>::ffi_from(*o_0)) } - } - } - - impl ferment::FFIConversionTo for dpp_document_Document { - unsafe fn ffi_to_const(obj: dpp::document::Document) -> *const dpp_document_Document { - ferment::boxed(match obj { - dpp::document::Document::V0(o_0) => dpp_document_Document::V0(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_document_Document { - fn drop(&mut self) { - unsafe { - match self { - dpp_document_Document::V0(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_Document_V0_ctor(o_o_0: *mut crate::fermented::types::dpp::document::v0::dpp_document_v0_DocumentV0) -> *mut dpp_document_Document { ferment::boxed(dpp_document_Document::V0(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_document_Document_destroy<>(ffi: *mut dpp_document_Document) { ferment::unbox_any(ffi); } - - #[cfg(feature = "factories")] - pub mod specialized_document_factory { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - #[cfg(feature = "factories")] - pub mod document_factory { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - pub mod fee { - use crate as dash_sdk_bindings; - - pub mod epoch { - use crate as dash_sdk_bindings; - - #[cfg(feature = "fee-distribution")] - pub mod distribution { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - #[cfg(feature = "fee-distribution")] - pub mod fee_result { - use crate as dash_sdk_bindings; - - pub mod refunds { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - pub mod default_costs { use crate as dash_sdk_bindings; } - } - - pub mod core_subsidy { - use crate as dash_sdk_bindings; - - pub mod epoch_core_reward_credits_for_distribution { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "core-types")] - pub mod core_types { - use crate as dash_sdk_bindings; - - pub mod validator { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod validator_set { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod withdrawal { - use crate as dash_sdk_bindings; - - #[cfg(feature = "serde-conversion")] - pub mod pooling_serde { - use crate as dash_sdk_bindings; - } - - pub mod daily_withdrawal_limit { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(all(feature = "withdrawals-contract", feature = "system_contracts"))] - pub mod document_try_into_asset_unlock_base_transaction_info { - use crate as dash_sdk_bindings; - } - } - - pub mod identity { - use crate as dash_sdk_bindings; - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod create_basic_identity { use crate as dash_sdk_bindings; } - } - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`IdentityV0`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_identity_v0_IdentityV0 { - pub id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub public_keys: *mut crate::fermented::generics::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey, - pub balance: u64, - pub revision: *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision, - } - - impl ferment::FFIConversionFrom for dpp_identity_v0_IdentityV0 { - unsafe fn ffi_from_const(ffi: *const dpp_identity_v0_IdentityV0) -> dpp::identity::v0::IdentityV0 { - let ffi_ref = &*ffi; - dpp::identity::v0::IdentityV0 { id: >::ffi_from(ffi_ref.id), public_keys: >>::ffi_from(ffi_ref.public_keys), balance: ffi_ref.balance, revision: >::ffi_from(ffi_ref.revision) } - } - } - - impl ferment::FFIConversionTo for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const(obj: dpp::identity::v0::IdentityV0) -> *const dpp_identity_v0_IdentityV0 { ferment::boxed(dpp_identity_v0_IdentityV0 { id: >::ffi_to(obj.id), public_keys: >>::ffi_to(obj.public_keys), balance: obj.balance, revision: >::ffi_to(obj.revision) }) } } - - impl Drop for dpp_identity_v0_IdentityV0 { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.id); - ferment::unbox_any(ffi_ref.public_keys); - ; - ferment::unbox_any(ffi_ref.revision); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor<>(id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, public_keys: *mut crate::fermented::generics::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey, balance: u64, revision: *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision) -> *mut dpp_identity_v0_IdentityV0 { ferment::boxed(dpp_identity_v0_IdentityV0 { id, public_keys, balance, revision }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy<>(ffi: *mut dpp_identity_v0_IdentityV0) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id<>(obj: *const dpp_identity_v0_IdentityV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys<>(obj: *const dpp_identity_v0_IdentityV0) -> *mut crate::fermented::generics::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (*obj).public_keys } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance<>(obj: *const dpp_identity_v0_IdentityV0) -> u64 { (*obj).balance } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision<>(obj: *const dpp_identity_v0_IdentityV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision { (*obj).revision } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id<>(obj: *const dpp_identity_v0_IdentityV0) -> *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier { (*obj).id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys<>(obj: *const dpp_identity_v0_IdentityV0) -> *mut crate::fermented::generics::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (*obj).public_keys } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance<>(obj: *const dpp_identity_v0_IdentityV0) -> u64 { (*obj).balance } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision<>(obj: *const dpp_identity_v0_IdentityV0) -> *mut crate::fermented::types::dpp::prelude::dpp_prelude_Revision { (*obj).revision } - - pub mod conversion { - use crate as dash_sdk_bindings; - - #[cfg(feature = "json-conversion")] - pub mod json { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "value-conversion")] - pub mod platform_value { - use crate as dash_sdk_bindings; - } - } - } - - pub mod core_script { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod state_transition { - use crate as dash_sdk_bindings; - - pub mod asset_lock_proof { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod instant { - use crate as dash_sdk_bindings; - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod validate_structure { use crate as dash_sdk_bindings; } - } - - pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings; } - } - - pub mod chain { - use crate as dash_sdk_bindings; - - pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings; } - } - - pub mod validate_asset_lock_transaction_structure { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - - pub mod fields { use crate as dash_sdk_bindings; } - - pub mod conversion { - use crate as dash_sdk_bindings; - - #[cfg(feature = "value-conversion")] - pub mod platform_value { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "json-conversion")] - pub mod json { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "identity-cbor-conversion")] - pub mod cbor { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "factories")] - pub mod identity_factory { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "client")] - pub mod identity_facade { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod identity { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_identity_identity_Identity { V0(*mut crate::fermented::types::dpp::identity::v0::dpp_identity_v0_IdentityV0) } - - impl ferment::FFIConversionFrom for dpp_identity_identity_Identity { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_Identity) -> dpp::identity::identity::Identity { - let ffi_ref = &*ffi; - match ffi_ref { dpp_identity_identity_Identity::V0(o_0) => dpp::identity::identity::Identity::V0(>::ffi_from(*o_0)) } - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_Identity { - unsafe fn ffi_to_const(obj: dpp::identity::identity::Identity) -> *const dpp_identity_identity_Identity { - ferment::boxed(match obj { - dpp::identity::identity::Identity::V0(o_0) => dpp_identity_identity_Identity::V0(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_identity_identity_Identity { - fn drop(&mut self) { - unsafe { - match self { - dpp_identity_identity_Identity::V0(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor(o_o_0: *mut crate::fermented::types::dpp::identity::v0::dpp_identity_v0_IdentityV0) -> *mut dpp_identity_identity_Identity { ferment::boxed(dpp_identity_identity_Identity::V0(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy<>(ffi: *mut dpp_identity_identity_Identity) { ferment::unbox_any(ffi); } - } - - pub mod errors { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod identity_nonce { use crate as dash_sdk_bindings; } - - pub mod credits_converter { use crate as dash_sdk_bindings; } - - pub mod identity_public_key { - use crate as dash_sdk_bindings; - - pub mod key_type { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0, BLS12_381 = 1, ECDSA_HASH160 = 2, BIP13_SCRIPT_HASH = 3, EDDSA_25519_HASH160 = 4 } - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_key_type_KeyType { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_key_type_KeyType) -> dpp::identity::identity_public_key::key_type::KeyType { - let ffi_ref = &*ffi; - match ffi_ref { - dpp_identity_identity_public_key_key_type_KeyType::ECDSA_SECP256K1 => dpp::identity::identity_public_key::key_type::KeyType::ECDSA_SECP256K1, - dpp_identity_identity_public_key_key_type_KeyType::BLS12_381 => dpp::identity::identity_public_key::key_type::KeyType::BLS12_381, - dpp_identity_identity_public_key_key_type_KeyType::ECDSA_HASH160 => dpp::identity::identity_public_key::key_type::KeyType::ECDSA_HASH160, - dpp_identity_identity_public_key_key_type_KeyType::BIP13_SCRIPT_HASH => dpp::identity::identity_public_key::key_type::KeyType::BIP13_SCRIPT_HASH, - dpp_identity_identity_public_key_key_type_KeyType::EDDSA_25519_HASH160 => dpp::identity::identity_public_key::key_type::KeyType::EDDSA_25519_HASH160 - } - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_key_type_KeyType { - unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::key_type::KeyType) -> *const dpp_identity_identity_public_key_key_type_KeyType { - ferment::boxed(match obj { - dpp::identity::identity_public_key::key_type::KeyType::ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType::ECDSA_SECP256K1, - dpp::identity::identity_public_key::key_type::KeyType::BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType::BLS12_381, - dpp::identity::identity_public_key::key_type::KeyType::ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType::ECDSA_HASH160, - dpp::identity::identity_public_key::key_type::KeyType::BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType::BIP13_SCRIPT_HASH, - dpp::identity::identity_public_key::key_type::KeyType::EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType::EDDSA_25519_HASH160, - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_identity_identity_public_key_key_type_KeyType { - fn drop(&mut self) { - unsafe { - match self { - dpp_identity_identity_public_key_key_type_KeyType::ECDSA_SECP256K1 => {} - dpp_identity_identity_public_key_key_type_KeyType::BLS12_381 => {} - dpp_identity_identity_public_key_key_type_KeyType::ECDSA_HASH160 => {} - dpp_identity_identity_public_key_key_type_KeyType::BIP13_SCRIPT_HASH => {} - dpp_identity_identity_public_key_key_type_KeyType::EDDSA_25519_HASH160 => {} - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor() -> *mut dpp_identity_identity_public_key_key_type_KeyType { ferment::boxed(dpp_identity_identity_public_key_key_type_KeyType::ECDSA_SECP256K1 {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor() -> *mut dpp_identity_identity_public_key_key_type_KeyType { ferment::boxed(dpp_identity_identity_public_key_key_type_KeyType::BLS12_381 {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor() -> *mut dpp_identity_identity_public_key_key_type_KeyType { ferment::boxed(dpp_identity_identity_public_key_key_type_KeyType::ECDSA_HASH160 {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor() -> *mut dpp_identity_identity_public_key_key_type_KeyType { ferment::boxed(dpp_identity_identity_public_key_key_type_KeyType::BIP13_SCRIPT_HASH {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor() -> *mut dpp_identity_identity_public_key_key_type_KeyType { ferment::boxed(dpp_identity_identity_public_key_key_type_KeyType::EDDSA_25519_HASH160 {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy<>(ffi: *mut dpp_identity_identity_public_key_key_type_KeyType) { ferment::unbox_any(ffi); } - } - - #[doc = "FFI-representation of the [`KeyCount`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_identity_identity_public_key_KeyCount(*mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID); - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_KeyCount { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_KeyCount) -> dpp::identity::identity_public_key::KeyCount { - let ffi_ref = &*ffi; - >::ffi_from(ffi_ref.0) - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::KeyCount) -> *const dpp_identity_identity_public_key_KeyCount { ferment::boxed(dpp_identity_identity_public_key_KeyCount(>::ffi_to(obj))) } } - - impl Drop for dpp_identity_identity_public_key_KeyCount { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.0); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor<>(o_0: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID) -> *mut dpp_identity_identity_public_key_KeyCount { ferment::boxed(dpp_identity_identity_public_key_KeyCount(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy<>(ffi: *mut dpp_identity_identity_public_key_KeyCount) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0<>(obj: *const dpp_identity_identity_public_key_KeyCount) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0<>(obj: *const dpp_identity_identity_public_key_KeyCount) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID { (*obj).0 } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod conversion { - use crate as dash_sdk_bindings; - - #[cfg(feature = "json-conversion")] - pub mod json { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "value-conversion")] - pub mod platform_value { - use crate as dash_sdk_bindings; - } - } - - #[doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { - pub id: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID, - pub purpose: *mut crate::fermented::types::dpp::identity::identity_public_key::purpose::dpp_identity_identity_public_key_purpose_Purpose, - pub security_level: *mut crate::fermented::types::dpp::identity::identity_public_key::security_level::dpp_identity_identity_public_key_security_level_SecurityLevel, - pub contract_bounds: *mut crate::fermented::types::dpp::identity::identity_public_key::contract_bounds::dpp_identity_identity_public_key_contract_bounds_ContractBounds, - pub key_type: *mut crate::fermented::types::dpp::identity::identity_public_key::key_type::dpp_identity_identity_public_key_key_type_KeyType, - pub read_only: bool, - pub data: *mut crate::fermented::types::platform_value::types::binary_data::platform_value_types_binary_data_BinaryData, - pub disabled_at: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis, - } - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp::identity::identity_public_key::v0::IdentityPublicKeyV0 { - let ffi_ref = &*ffi; - dpp::identity::identity_public_key::v0::IdentityPublicKeyV0 { - id: >::ffi_from(ffi_ref.id), - purpose: >::ffi_from(ffi_ref.purpose), - security_level: >::ffi_from(ffi_ref.security_level), - contract_bounds: >::ffi_from_opt(ffi_ref.contract_bounds), - key_type: >::ffi_from(ffi_ref.key_type), - read_only: ffi_ref.read_only, - data: >::ffi_from(ffi_ref.data), - disabled_at: >::ffi_from_opt(ffi_ref.disabled_at), - } - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { - unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::v0::IdentityPublicKeyV0) -> *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { - ferment::boxed(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { - id: >::ffi_to(obj.id), - purpose: >::ffi_to(obj.purpose), - security_level: >::ffi_to(obj.security_level), - contract_bounds: >::ffi_to_opt(obj.contract_bounds), - key_type: >::ffi_to(obj.key_type), - read_only: obj.read_only, - data: >::ffi_to(obj.data), - disabled_at: >::ffi_to_opt(obj.disabled_at), - }) - } - } - - impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ferment::unbox_any(ffi_ref.id); - ferment::unbox_any(ffi_ref.purpose); - ferment::unbox_any(ffi_ref.security_level); - ferment::unbox_any_opt(ffi_ref.contract_bounds); - ferment::unbox_any(ffi_ref.key_type); - ; - ferment::unbox_any(ffi_ref.data); - ferment::unbox_any_opt(ffi_ref.disabled_at); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor<>(id: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID, purpose: *mut crate::fermented::types::dpp::identity::identity_public_key::purpose::dpp_identity_identity_public_key_purpose_Purpose, security_level: *mut crate::fermented::types::dpp::identity::identity_public_key::security_level::dpp_identity_identity_public_key_security_level_SecurityLevel, contract_bounds: *mut crate::fermented::types::dpp::identity::identity_public_key::contract_bounds::dpp_identity_identity_public_key_contract_bounds_ContractBounds, key_type: *mut crate::fermented::types::dpp::identity::identity_public_key::key_type::dpp_identity_identity_public_key_key_type_KeyType, read_only: bool, data: *mut crate::fermented::types::platform_value::types::binary_data::platform_value_types_binary_data_BinaryData, disabled_at: *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis) -> *mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment::boxed(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id, purpose, security_level, contract_bounds, key_type, read_only, data, disabled_at }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy<>(ffi: *mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID { (*obj).id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::purpose::dpp_identity_identity_public_key_purpose_Purpose { (*obj).purpose } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::security_level::dpp_identity_identity_public_key_security_level_SecurityLevel { (*obj).security_level } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::contract_bounds::dpp_identity_identity_public_key_contract_bounds_ContractBounds { (*obj).contract_bounds } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::key_type::dpp_identity_identity_public_key_key_type_KeyType { (*obj).key_type } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (*obj).read_only } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::platform_value::types::binary_data::platform_value_types_binary_data_BinaryData { (*obj).data } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { (*obj).disabled_at } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID { (*obj).id } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::purpose::dpp_identity_identity_public_key_purpose_Purpose { (*obj).purpose } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::security_level::dpp_identity_identity_public_key_security_level_SecurityLevel { (*obj).security_level } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::contract_bounds::dpp_identity_identity_public_key_contract_bounds_ContractBounds { (*obj).contract_bounds } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::key_type::dpp_identity_identity_public_key_key_type_KeyType { (*obj).key_type } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (*obj).read_only } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::platform_value::types::binary_data::platform_value_types_binary_data_BinaryData { (*obj).data } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at<>(obj: *const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_TimestampMillis { (*obj).disabled_at } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod security_level { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0, CRITICAL = 1, HIGH = 2, MEDIUM = 3 } - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_security_level_SecurityLevel { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp::identity::identity_public_key::security_level::SecurityLevel { - let ffi_ref = &*ffi; - match ffi_ref { - dpp_identity_identity_public_key_security_level_SecurityLevel::MASTER => dpp::identity::identity_public_key::security_level::SecurityLevel::MASTER, - dpp_identity_identity_public_key_security_level_SecurityLevel::CRITICAL => dpp::identity::identity_public_key::security_level::SecurityLevel::CRITICAL, - dpp_identity_identity_public_key_security_level_SecurityLevel::HIGH => dpp::identity::identity_public_key::security_level::SecurityLevel::HIGH, - dpp_identity_identity_public_key_security_level_SecurityLevel::MEDIUM => dpp::identity::identity_public_key::security_level::SecurityLevel::MEDIUM - } - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_security_level_SecurityLevel { - unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::security_level::SecurityLevel) -> *const dpp_identity_identity_public_key_security_level_SecurityLevel { - ferment::boxed(match obj { - dpp::identity::identity_public_key::security_level::SecurityLevel::MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel::MASTER, - dpp::identity::identity_public_key::security_level::SecurityLevel::CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel::CRITICAL, - dpp::identity::identity_public_key::security_level::SecurityLevel::HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel::HIGH, - dpp::identity::identity_public_key::security_level::SecurityLevel::MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel::MEDIUM, - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { - fn drop(&mut self) { - unsafe { - match self { - dpp_identity_identity_public_key_security_level_SecurityLevel::MASTER => {} - dpp_identity_identity_public_key_security_level_SecurityLevel::CRITICAL => {} - dpp_identity_identity_public_key_security_level_SecurityLevel::HIGH => {} - dpp_identity_identity_public_key_security_level_SecurityLevel::MEDIUM => {} - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor() -> *mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment::boxed(dpp_identity_identity_public_key_security_level_SecurityLevel::MASTER {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor() -> *mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment::boxed(dpp_identity_identity_public_key_security_level_SecurityLevel::CRITICAL {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor() -> *mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment::boxed(dpp_identity_identity_public_key_security_level_SecurityLevel::HIGH {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor() -> *mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment::boxed(dpp_identity_identity_public_key_security_level_SecurityLevel::MEDIUM {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy<>(ffi: *mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment::unbox_any(ffi); } - } - - pub mod contract_bounds { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier }, SingleContractDocumentType { id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, document_type_name: *mut std::os::raw::c_char } } - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_contract_bounds_ContractBounds { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp::identity::identity_public_key::contract_bounds::ContractBounds { - let ffi_ref = &*ffi; - match ffi_ref { - dpp_identity_identity_public_key_contract_bounds_ContractBounds::SingleContract { id } => dpp::identity::identity_public_key::contract_bounds::ContractBounds::SingleContract { id: >::ffi_from(*id) }, - dpp_identity_identity_public_key_contract_bounds_ContractBounds::SingleContractDocumentType { id, document_type_name } => dpp::identity::identity_public_key::contract_bounds::ContractBounds::SingleContractDocumentType { id: >::ffi_from(*id), document_type_name: >::ffi_from(*document_type_name) } - } - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_contract_bounds_ContractBounds { - unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::contract_bounds::ContractBounds) -> *const dpp_identity_identity_public_key_contract_bounds_ContractBounds { - ferment::boxed(match obj { - dpp::identity::identity_public_key::contract_bounds::ContractBounds::SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds::SingleContract { id: >::ffi_to(id) }, - dpp::identity::identity_public_key::contract_bounds::ContractBounds::SingleContractDocumentType { id, document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds::SingleContractDocumentType { id: >::ffi_to(id), document_type_name: >::ffi_to(document_type_name) }, - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { - fn drop(&mut self) { - unsafe { - match self { - dpp_identity_identity_public_key_contract_bounds_ContractBounds::SingleContract { id } => { ferment::unbox_any(*id); } - dpp_identity_identity_public_key_contract_bounds_ContractBounds::SingleContractDocumentType { id, document_type_name } => { - ferment::unbox_any(*id); - ; - ferment::unbox_string(*document_type_name); - } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor(id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment::boxed(dpp_identity_identity_public_key_contract_bounds_ContractBounds::SingleContract { id }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor(id: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, document_type_name: *mut std::os::raw::c_char) -> *mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment::boxed(dpp_identity_identity_public_key_contract_bounds_ContractBounds::SingleContractDocumentType { id, document_type_name }) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy<>(ffi: *mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment::unbox_any(ffi); } - } - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod hash { use crate as dash_sdk_bindings; } - } - - pub mod conversion { - use crate as dash_sdk_bindings; - - #[cfg(feature = "json-conversion")] - pub mod json { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "value-conversion")] - pub mod platform_value { - use crate as dash_sdk_bindings; - } - } - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0(*mut crate::fermented::types::dpp::identity::identity_public_key::v0::dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) } - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_IdentityPublicKey { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp::identity::identity_public_key::IdentityPublicKey { - let ffi_ref = &*ffi; - match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey::V0(o_0) => dpp::identity::identity_public_key::IdentityPublicKey::V0(>::ffi_from(*o_0)) } - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_IdentityPublicKey { - unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::IdentityPublicKey) -> *const dpp_identity_identity_public_key_IdentityPublicKey { - ferment::boxed(match obj { - dpp::identity::identity_public_key::IdentityPublicKey::V0(o_0) => dpp_identity_identity_public_key_IdentityPublicKey::V0(>::ffi_to(o_0)), - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { - fn drop(&mut self) { - unsafe { - match self { - dpp_identity_identity_public_key_IdentityPublicKey::V0(o_0) => { ferment::unbox_any(*o_0); } - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor(o_o_0: *mut crate::fermented::types::dpp::identity::identity_public_key::v0::dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> *mut dpp_identity_identity_public_key_IdentityPublicKey { ferment::boxed(dpp_identity_identity_public_key_IdentityPublicKey::V0(o_o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy<>(ffi: *mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment::unbox_any(ffi); } - - #[doc = "FFI-representation of the [`KeyID`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_identity_identity_public_key_KeyID(u32); - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_KeyID { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_KeyID) -> dpp::identity::identity_public_key::KeyID { - let ffi_ref = &*ffi; - ffi_ref.0 - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::KeyID) -> *const dpp_identity_identity_public_key_KeyID { ferment::boxed(dpp_identity_identity_public_key_KeyID(obj)) } } - - impl Drop for dpp_identity_identity_public_key_KeyID { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor<>(o_0: u32) -> *mut dpp_identity_identity_public_key_KeyID { ferment::boxed(dpp_identity_identity_public_key_KeyID(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy<>(ffi: *mut dpp_identity_identity_public_key_KeyID) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0<>(obj: *const dpp_identity_identity_public_key_KeyID) -> u32 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0<>(obj: *const dpp_identity_identity_public_key_KeyID) -> u32 { (*obj).0 } - - pub mod purpose { - use crate as dash_sdk_bindings; - - #[doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] - #[repr(C)] - #[derive(Clone)] - #[non_exhaustive] - pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0, ENCRYPTION = 1, DECRYPTION = 2, TRANSFER = 3, SYSTEM = 4, VOTING = 5, OWNER = 6 } - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_purpose_Purpose { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_purpose_Purpose) -> dpp::identity::identity_public_key::purpose::Purpose { - let ffi_ref = &*ffi; - match ffi_ref { - dpp_identity_identity_public_key_purpose_Purpose::AUTHENTICATION => dpp::identity::identity_public_key::purpose::Purpose::AUTHENTICATION, - dpp_identity_identity_public_key_purpose_Purpose::ENCRYPTION => dpp::identity::identity_public_key::purpose::Purpose::ENCRYPTION, - dpp_identity_identity_public_key_purpose_Purpose::DECRYPTION => dpp::identity::identity_public_key::purpose::Purpose::DECRYPTION, - dpp_identity_identity_public_key_purpose_Purpose::TRANSFER => dpp::identity::identity_public_key::purpose::Purpose::TRANSFER, - dpp_identity_identity_public_key_purpose_Purpose::SYSTEM => dpp::identity::identity_public_key::purpose::Purpose::SYSTEM, - dpp_identity_identity_public_key_purpose_Purpose::VOTING => dpp::identity::identity_public_key::purpose::Purpose::VOTING, - dpp_identity_identity_public_key_purpose_Purpose::OWNER => dpp::identity::identity_public_key::purpose::Purpose::OWNER - } - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_purpose_Purpose { - unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::purpose::Purpose) -> *const dpp_identity_identity_public_key_purpose_Purpose { - ferment::boxed(match obj { - dpp::identity::identity_public_key::purpose::Purpose::AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose::AUTHENTICATION, - dpp::identity::identity_public_key::purpose::Purpose::ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose::ENCRYPTION, - dpp::identity::identity_public_key::purpose::Purpose::DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose::DECRYPTION, - dpp::identity::identity_public_key::purpose::Purpose::TRANSFER => dpp_identity_identity_public_key_purpose_Purpose::TRANSFER, - dpp::identity::identity_public_key::purpose::Purpose::SYSTEM => dpp_identity_identity_public_key_purpose_Purpose::SYSTEM, - dpp::identity::identity_public_key::purpose::Purpose::VOTING => dpp_identity_identity_public_key_purpose_Purpose::VOTING, - dpp::identity::identity_public_key::purpose::Purpose::OWNER => dpp_identity_identity_public_key_purpose_Purpose::OWNER, - _ => unreachable!("This is unreachable") - }) - } - } - - impl Drop for dpp_identity_identity_public_key_purpose_Purpose { - fn drop(&mut self) { - unsafe { - match self { - dpp_identity_identity_public_key_purpose_Purpose::AUTHENTICATION => {} - dpp_identity_identity_public_key_purpose_Purpose::ENCRYPTION => {} - dpp_identity_identity_public_key_purpose_Purpose::DECRYPTION => {} - dpp_identity_identity_public_key_purpose_Purpose::TRANSFER => {} - dpp_identity_identity_public_key_purpose_Purpose::SYSTEM => {} - dpp_identity_identity_public_key_purpose_Purpose::VOTING => {} - dpp_identity_identity_public_key_purpose_Purpose::OWNER => {} - _ => unreachable!("This is unreachable") - }; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor() -> *mut dpp_identity_identity_public_key_purpose_Purpose { ferment::boxed(dpp_identity_identity_public_key_purpose_Purpose::AUTHENTICATION {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor() -> *mut dpp_identity_identity_public_key_purpose_Purpose { ferment::boxed(dpp_identity_identity_public_key_purpose_Purpose::ENCRYPTION {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor() -> *mut dpp_identity_identity_public_key_purpose_Purpose { ferment::boxed(dpp_identity_identity_public_key_purpose_Purpose::DECRYPTION {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor() -> *mut dpp_identity_identity_public_key_purpose_Purpose { ferment::boxed(dpp_identity_identity_public_key_purpose_Purpose::TRANSFER {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor() -> *mut dpp_identity_identity_public_key_purpose_Purpose { ferment::boxed(dpp_identity_identity_public_key_purpose_Purpose::SYSTEM {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor() -> *mut dpp_identity_identity_public_key_purpose_Purpose { ferment::boxed(dpp_identity_identity_public_key_purpose_Purpose::VOTING {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor() -> *mut dpp_identity_identity_public_key_purpose_Purpose { ferment::boxed(dpp_identity_identity_public_key_purpose_Purpose::OWNER {}) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy<>(ffi: *mut dpp_identity_identity_public_key_purpose_Purpose) { ferment::unbox_any(ffi); } - } - - #[doc = "FFI-representation of the [`TimestampMillis`]"] - #[repr(C)] - #[derive(Clone)] - pub struct dpp_identity_identity_public_key_TimestampMillis(u64); - - impl ferment::FFIConversionFrom for dpp_identity_identity_public_key_TimestampMillis { - unsafe fn ffi_from_const(ffi: *const dpp_identity_identity_public_key_TimestampMillis) -> dpp::identity::identity_public_key::TimestampMillis { - let ffi_ref = &*ffi; - ffi_ref.0 - } - } - - impl ferment::FFIConversionTo for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const(obj: dpp::identity::identity_public_key::TimestampMillis) -> *const dpp_identity_identity_public_key_TimestampMillis { ferment::boxed(dpp_identity_identity_public_key_TimestampMillis(obj)) } } - - impl Drop for dpp_identity_identity_public_key_TimestampMillis { - fn drop(&mut self) { - unsafe { - let ffi_ref = self; - ; - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor<>(o_0: u64) -> *mut dpp_identity_identity_public_key_TimestampMillis { ferment::boxed(dpp_identity_identity_public_key_TimestampMillis(o_0)) } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy<>(ffi: *mut dpp_identity_identity_public_key_TimestampMillis) { ferment::unbox_any(ffi); } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0<>(obj: *const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (*obj).0 } - - #[no_mangle] - pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0<>(obj: *const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (*obj).0 } - } - } - - pub mod data_contract { - use crate as dash_sdk_bindings; - - #[cfg(any(feature = "state-transitions", feature = "factories"))] - pub mod created_data_contract { - use crate as dash_sdk_bindings; - - pub mod fields { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "factories")] - pub mod factory { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod change_control_rules { - use crate as dash_sdk_bindings; - - pub mod authorized_action_takers { use crate as dash_sdk_bindings; } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod document_type { - use crate as dash_sdk_bindings; - - pub mod token_costs { use crate as dash_sdk_bindings; } - - pub mod v2 { use crate as dash_sdk_bindings; } - - pub mod class_methods { - use crate as dash_sdk_bindings; - - pub mod should_use_creator_id { use crate as dash_sdk_bindings; } - - pub mod create_document_types_from_document_schemas { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod try_from_schema { - use crate as dash_sdk_bindings; - - pub mod v1 { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod v2 { use crate as dash_sdk_bindings; } - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - } - - pub mod methods { - use crate as dash_sdk_bindings; - - #[cfg(feature = "validation")] - pub mod validate_update { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - } - - pub mod index { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod v1 { use crate as dash_sdk_bindings; } - - pub mod index_level { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod schema { - use crate as dash_sdk_bindings; - - pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings; } - - pub mod enrich_with_base_schema { use crate as dash_sdk_bindings; } - - #[cfg(feature = "validation")] - pub mod validate_max_depth { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - #[cfg(feature = "validation")] - pub mod validate_schema_compatibility { - use crate as dash_sdk_bindings; - } - - pub mod allowed_top_level_properties { use crate as dash_sdk_bindings; } - - #[cfg(feature = "validation")] - pub mod recursive_schema_validator { - use crate as dash_sdk_bindings; - - pub mod traversal_validator { use crate as dash_sdk_bindings; } - } - } - - #[cfg(feature = "random-documents")] - pub mod random_document { - use crate as dash_sdk_bindings; - } - - pub mod property { - use crate as dash_sdk_bindings; - - pub mod array { use crate as dash_sdk_bindings; } - } - } - - pub mod group { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod config { - use crate as dash_sdk_bindings; - - pub mod fields { use crate as dash_sdk_bindings; } - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod validate_update { - use crate as dash_sdk_bindings; - - pub mod v1 { use crate as dash_sdk_bindings; } - } - } - } - - pub mod storage_requirements { use crate as dash_sdk_bindings; } - - pub mod v1 { - use crate as dash_sdk_bindings; - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod schema { use crate as dash_sdk_bindings; } - } - - pub mod conversion { use crate as dash_sdk_bindings; } - - pub mod serialization { use crate as dash_sdk_bindings; } - } - - pub mod serialized_version { use crate as dash_sdk_bindings; } - - pub mod associated_token { - use crate as dash_sdk_bindings; - - pub mod token_keeps_history_rules { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod token_marketplace_rules { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod token_pre_programmed_distribution { - use crate as dash_sdk_bindings; - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod token_configuration_convention { - use crate as dash_sdk_bindings; - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod validate_localizations { use crate as dash_sdk_bindings; } - } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod token_configuration_item { use crate as dash_sdk_bindings; } - - pub mod token_distribution_rules { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod token_configuration { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod can_apply_token_configuration_item { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod apply_token_configuration_item { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod validate_token_configuration_groups_exist { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod validate_token_configuration_update { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod authorized_action_takers_for_configuration_item { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - - pub mod token_configuration_localization { - use crate as dash_sdk_bindings; - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod accessors { use crate as dash_sdk_bindings; } - } - - pub mod token_perpetual_distribution { - use crate as dash_sdk_bindings; - - pub mod reward_distribution_type { - use crate as dash_sdk_bindings; - - pub mod validation { use crate as dash_sdk_bindings; } - } - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - - pub mod distribution_function { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - - pub mod validation { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod evaluate_interval { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod encode { use crate as dash_sdk_bindings; } - - pub mod evaluate { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - pub mod distribution_recipient { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod reward_distribution_moment { use crate as dash_sdk_bindings; } - } - } - - pub mod v0 { - use crate as dash_sdk_bindings; - - pub mod serialization { use crate as dash_sdk_bindings; } - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod schema { use crate as dash_sdk_bindings; } - } - - pub mod conversion { use crate as dash_sdk_bindings; } - - pub mod data_contract { use crate as dash_sdk_bindings; } - } - - pub mod errors { use crate as dash_sdk_bindings; } - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings; } - - pub mod registration_cost { use crate as dash_sdk_bindings; } - - #[cfg(feature = "validation")] - pub mod validate_document { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "validation")] - pub mod validate_update { - use crate as dash_sdk_bindings; - - pub mod v0 { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - pub mod schema { use crate as dash_sdk_bindings; } - - #[cfg(feature = "validation")] - pub mod validate_groups { - use crate as dash_sdk_bindings; - } - } - - pub mod extra { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod drive_api_tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(any( - feature = "value-conversion", - feature = "data-contract-cbor-conversion", - feature = "json-conversion", - feature = "serde-conversion" - ))] - pub mod conversion { - use crate as dash_sdk_bindings; - - #[cfg(feature = "value-conversion")] - pub mod value { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "json-conversion")] - pub mod json { - use crate as dash_sdk_bindings; - } - - #[cfg(feature = "data-contract-cbor-conversion")] - pub mod cbor { - use crate as dash_sdk_bindings; - } - } - } - - pub mod util { - use crate as dash_sdk_bindings; - - pub mod json_path { use crate as dash_sdk_bindings; } - - pub mod json_value { - use crate as dash_sdk_bindings; - - pub mod insert_with_path { use crate as dash_sdk_bindings; } - - pub mod remove_path { use crate as dash_sdk_bindings; } - } - - pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings; } - - pub mod strings { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - pub mod deserializer { use crate as dash_sdk_bindings; } - - pub mod json_schema { use crate as dash_sdk_bindings; } - - pub mod vec { use crate as dash_sdk_bindings; } - - #[cfg(feature = "cbor")] - pub mod cbor_value { - use crate as dash_sdk_bindings; - - pub mod convert { use crate as dash_sdk_bindings; } - - pub mod map { use crate as dash_sdk_bindings; } - - pub mod canonical { use crate as dash_sdk_bindings; } - } - } - - pub mod tokens { - use crate as dash_sdk_bindings; - - pub mod info { use crate as dash_sdk_bindings; } - - pub mod status { use crate as dash_sdk_bindings; } - - pub mod contract_info { use crate as dash_sdk_bindings; } - - pub mod token_pricing_schedule { use crate as dash_sdk_bindings; } - - pub mod token_event { use crate as dash_sdk_bindings; } - - pub mod token_payment_info { - use crate as dash_sdk_bindings; - - pub mod methods { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - - pub mod group { - use crate as dash_sdk_bindings; - - pub mod group_action { use crate as dash_sdk_bindings; } - } - - pub mod validation { - use crate as dash_sdk_bindings; - - #[cfg(feature = "validation")] - pub mod byte_array_keyword { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - - #[cfg(feature = "validation")] - pub mod json_schema_validator { - use crate as dash_sdk_bindings; - - pub mod methods { - use crate as dash_sdk_bindings; - - pub mod compile { use crate as dash_sdk_bindings; } - - pub mod new { use crate as dash_sdk_bindings; } - - pub mod validate { use crate as dash_sdk_bindings; } - } - } - - pub mod validation_result { - use crate as dash_sdk_bindings; - - pub mod flatten { - use crate as dash_sdk_bindings; - - pub mod v1 { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - - pub mod merge_many { - use crate as dash_sdk_bindings; - - pub mod v1 { use crate as dash_sdk_bindings; } - - pub mod v0 { use crate as dash_sdk_bindings; } - } - } - } - - pub mod balances { - use crate as dash_sdk_bindings; - - pub mod credits { - use crate as dash_sdk_bindings; - - #[cfg(test)] - pub mod tests { - use crate as dash_sdk_bindings; - } - } - } - - #[cfg(feature = "system_contracts")] - pub mod system_data_contracts { - use crate as dash_sdk_bindings; - } - - pub mod bls { use crate as dash_sdk_bindings; } - } -} - -#[allow( - clippy::let_and_return, - clippy::suspicious_else_formatting, - clippy::redundant_field_names, - dead_code, - non_camel_case_types, - non_snake_case, - non_upper_case_globals, - redundant_semicolons, - unreachable_patterns, - unused_braces, - unused_imports, - unused_parens, - unused_qualifications, - unused_unsafe, - unused_variables -)] -pub mod generics { - use crate as dash_sdk_bindings; - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_dpp_document_Document { - pub count: usize, - pub values: *mut *mut crate::fermented::types::dpp::document::dpp_document_Document, - } - - impl ferment::FFIConversionFrom> for Vec_dpp_document_Document { - unsafe fn ffi_from_const(ffi: *const Vec_dpp_document_Document) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_dpp_document_Document { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_dpp_document_Document { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_dpp_document_Document { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_dpp_document_Document_ctor(count: usize, values: *mut *mut crate::fermented::types::dpp::document::dpp_document_Document) -> *mut Vec_dpp_document_Document { ferment::boxed(Vec_dpp_document_Document { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_dpp_document_Document_destroy(ffi: *mut Vec_dpp_document_Document) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_drive_query_conditions_WhereClause { - pub count: usize, - pub values: *mut *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereClause, - } - - impl ferment::FFIConversionFrom> for Vec_drive_query_conditions_WhereClause { - unsafe fn ffi_from_const(ffi: *const Vec_drive_query_conditions_WhereClause) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_drive_query_conditions_WhereClause { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_drive_query_conditions_WhereClause { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor(count: usize, values: *mut *mut crate::fermented::types::drive::query::conditions::drive_query_conditions_WhereClause) -> *mut Vec_drive_query_conditions_WhereClause { ferment::boxed(Vec_drive_query_conditions_WhereClause { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy(ffi: *mut Vec_drive_query_conditions_WhereClause) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_Vec_u8_err_String { - pub ok: *mut crate::fermented::generics::Vec_u8, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom, String>> for Result_ok_Vec_u8_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_Vec_u8_err_String) -> Result, String> { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >>::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo, String>> for Result_ok_Vec_u8_err_String { - unsafe fn ffi_to_const(obj: Result, String>) -> *const Result_ok_Vec_u8_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_Vec_u8_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor(ok: *mut crate::fermented::generics::Vec_u8, error: *mut std::os::raw::c_char) -> *mut Result_ok_Vec_u8_err_String { ferment::boxed(Result_ok_Vec_u8_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy(ffi: *mut Result_ok_Vec_u8_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Arr_u8_20 { - pub count: usize, - pub values: *mut u8, - } - - impl ferment::FFIConversionFrom<[u8; 20]> for Arr_u8_20 { - unsafe fn ffi_from_const(ffi: *const Arr_u8_20) -> [u8; 20] { - let ffi_ref = &*ffi; - let vec: Vec = ferment::from_primitive_group(ffi_ref.values, ffi_ref.count); - vec.try_into().unwrap() - } - } - - impl ferment::FFIConversionTo<[u8; 20]> for Arr_u8_20 { unsafe fn ffi_to_const(obj: [u8; 20]) -> *const Arr_u8_20 { ferment::boxed(Self { count: obj.len(), values: ferment::to_primitive_group(obj.into_iter()) }) } } - - impl Drop for Arr_u8_20 { fn drop(&mut self) { unsafe { ferment::unbox_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Arr_u8_20_ctor(count: usize, values: *mut u8) -> *mut Arr_u8_20 { ferment::boxed(Arr_u8_20 { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Arr_u8_20_destroy(ffi: *mut Arr_u8_20) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { - pub ok: *mut crate::fermented::types::platform_mobile::state_transition::platform_mobile_state_transition_StateTransitionInfo, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor(ok: *mut crate::fermented::types::platform_mobile::state_transition::platform_mobile_state_transition_StateTransitionInfo, error: *mut std::os::raw::c_char) -> *mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment::boxed(Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy(ffi: *mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_Tuple_platform_value_Value_platform_value_Value { - pub count: usize, - pub values: *mut *mut crate::fermented::generics::Tuple_platform_value_Value_platform_value_Value, - } - - impl ferment::FFIConversionFrom> for Vec_Tuple_platform_value_Value_platform_value_Value { - unsafe fn ffi_from_const(ffi: *const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec<(platform_value::Value, platform_value::Value)> { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const(obj: Vec<(platform_value::Value, platform_value::Value)>) -> *const Vec_Tuple_platform_value_Value_platform_value_Value { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor(count: usize, values: *mut *mut crate::fermented::generics::Tuple_platform_value_Value_platform_value_Value) -> *mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment::boxed(Vec_Tuple_platform_value_Value_platform_value_Value { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy(ffi: *mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { - pub ok: *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom, String>> for Result_ok_Option_dpp_identity_identity_Identity_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result, String> { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from_opt(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo, String>> for Result_ok_Option_dpp_identity_identity_Identity_err_String { - unsafe fn ffi_to_const(obj: Result, String>) -> *const Result_ok_Option_dpp_identity_identity_Identity_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to_opt(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor(ok: *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity, error: *mut std::os::raw::c_char) -> *mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment::boxed(Result_ok_Option_dpp_identity_identity_Identity_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy(ffi: *mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { - pub ok: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Contenders, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_drive_proof_verifier_types_Contenders_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_drive_proof_verifier_types_Contenders_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_drive_proof_verifier_types_Contenders_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor(ok: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Contenders, error: *mut std::os::raw::c_char) -> *mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment::boxed(Result_ok_drive_proof_verifier_types_Contenders_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy(ffi: *mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { - pub ok: *mut crate::fermented::types::platform_mobile::data_contracts::platform_mobile_data_contracts_DataContractFFI, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom, String>> for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result, String> { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from_opt(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo, String>> for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { - unsafe fn ffi_to_const(obj: Result, String>) -> *const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to_opt(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor(ok: *mut crate::fermented::types::platform_mobile::data_contracts::platform_mobile_data_contracts_DataContractFFI, error: *mut std::os::raw::c_char) -> *mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment::boxed(Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy(ffi: *mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { - pub o_0: *mut crate::fermented::types::dpp::prelude::dpp_prelude_TimestampMillis, - pub o_1: *mut crate::fermented::generics::Vec_dpp_voting_vote_polls_VotePoll, - } - - impl ferment::FFIConversionFrom<(dpp::prelude::TimestampMillis, Vec)> for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { - unsafe fn ffi_from_const(ffi: *const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp::prelude::TimestampMillis, Vec) { - let ffi_ref = &*ffi; - (ferment::FFIConversionFrom::ffi_from(ffi_ref.o_0), ferment::FFIConversionFrom::ffi_from(ffi_ref.o_1)) - } - } - - impl ferment::FFIConversionTo<(dpp::prelude::TimestampMillis, Vec)> for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const(obj: (dpp::prelude::TimestampMillis, Vec)) -> *const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment::boxed(Self { o_0: ferment::FFIConversionTo::ffi_to(obj.0), o_1: ferment::FFIConversionTo::ffi_to(obj.1) }) } } - - impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { - fn drop(&mut self) { - unsafe { - ferment::unbox_any(self.o_0); - ferment::unbox_any(self.o_1); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor(o_0: *mut crate::fermented::types::dpp::prelude::dpp_prelude_TimestampMillis, o_1: *mut crate::fermented::generics::Vec_dpp_voting_vote_polls_VotePoll) -> *mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment::boxed(Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0, o_1 }) } - - #[no_mangle] - pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy(ffi: *mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { - pub ok: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ResourceVotesByIdentity, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor(ok: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ResourceVotesByIdentity, error: *mut std::os::raw::c_char) -> *mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment::boxed(Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy(ffi: *mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Arr_u8_2 { - pub count: usize, - pub values: *mut u8, - } - - impl ferment::FFIConversionFrom<[u8; 2]> for Arr_u8_2 { - unsafe fn ffi_from_const(ffi: *const Arr_u8_2) -> [u8; 2] { - let ffi_ref = &*ffi; - let vec: Vec = ferment::from_primitive_group(ffi_ref.values, ffi_ref.count); - vec.try_into().unwrap() - } - } - - impl ferment::FFIConversionTo<[u8; 2]> for Arr_u8_2 { unsafe fn ffi_to_const(obj: [u8; 2]) -> *const Arr_u8_2 { ferment::boxed(Self { count: obj.len(), values: ferment::to_primitive_group(obj.into_iter()) }) } } - - impl Drop for Arr_u8_2 { fn drop(&mut self) { unsafe { ferment::unbox_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Arr_u8_2_ctor(count: usize, values: *mut u8) -> *mut Arr_u8_2 { ferment::boxed(Arr_u8_2 { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Arr_u8_2_destroy(ffi: *mut Arr_u8_2) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Arr_u8_36 { - pub count: usize, - pub values: *mut u8, - } - - impl ferment::FFIConversionFrom<[u8; 36]> for Arr_u8_36 { - unsafe fn ffi_from_const(ffi: *const Arr_u8_36) -> [u8; 36] { - let ffi_ref = &*ffi; - let vec: Vec = ferment::from_primitive_group(ffi_ref.values, ffi_ref.count); - vec.try_into().unwrap() - } - } - - impl ferment::FFIConversionTo<[u8; 36]> for Arr_u8_36 { unsafe fn ffi_to_const(obj: [u8; 36]) -> *const Arr_u8_36 { ferment::boxed(Self { count: obj.len(), values: ferment::to_primitive_group(obj.into_iter()) }) } } - - impl Drop for Arr_u8_36 { fn drop(&mut self) { unsafe { ferment::unbox_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Arr_u8_36_ctor(count: usize, values: *mut u8) -> *mut Arr_u8_36 { ferment::boxed(Arr_u8_36 { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Arr_u8_36_destroy(ffi: *mut Arr_u8_36) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_dpp_voting_vote_polls_VotePoll { - pub count: usize, - pub values: *mut *mut crate::fermented::types::dpp::voting::vote_polls::dpp_voting_vote_polls_VotePoll, - } - - impl ferment::FFIConversionFrom> for Vec_dpp_voting_vote_polls_VotePoll { - unsafe fn ffi_from_const(ffi: *const Vec_dpp_voting_vote_polls_VotePoll) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_dpp_voting_vote_polls_VotePoll { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor(count: usize, values: *mut *mut crate::fermented::types::dpp::voting::vote_polls::dpp_voting_vote_polls_VotePoll) -> *mut Vec_dpp_voting_vote_polls_VotePoll { ferment::boxed(Vec_dpp_voting_vote_polls_VotePoll { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy(ffi: *mut Vec_dpp_voting_vote_polls_VotePoll) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_dpp_voting_votes_Vote_err_String { - pub ok: *mut crate::fermented::types::dpp::voting::votes::dpp_voting_votes_Vote, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_dpp_voting_votes_Vote_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_dpp_voting_votes_Vote_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_dpp_voting_votes_Vote_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_dpp_voting_votes_Vote_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor(ok: *mut crate::fermented::types::dpp::voting::votes::dpp_voting_votes_Vote, error: *mut std::os::raw::c_char) -> *mut Result_ok_dpp_voting_votes_Vote_err_String { ferment::boxed(Result_ok_dpp_voting_votes_Vote_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy(ffi: *mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_u64_err_String { - pub ok: *mut u64, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_u64_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_u64_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| *o, ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_u64_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_u64_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::boxed(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_u64_err_String { - fn drop(&mut self) { - unsafe { - ferment::destroy_opt_primitive(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_u64_err_String_ctor(ok: *mut u64, error: *mut std::os::raw::c_char) -> *mut Result_ok_u64_err_String { ferment::boxed(Result_ok_u64_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_u64_err_String_destroy(ffi: *mut Result_ok_u64_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_dpp_identity_identity_public_key_KeyID { - pub count: usize, - pub values: *mut *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID, - } - - impl ferment::FFIConversionFrom> for Vec_dpp_identity_identity_public_key_KeyID { - unsafe fn ffi_from_const(ffi: *const Vec_dpp_identity_identity_public_key_KeyID) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_dpp_identity_identity_public_key_KeyID { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor(count: usize, values: *mut *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID) -> *mut Vec_dpp_identity_identity_public_key_KeyID { ferment::boxed(Vec_dpp_identity_identity_public_key_KeyID { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy(ffi: *mut Vec_dpp_identity_identity_public_key_KeyID) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { - pub count: usize, - pub keys: *mut *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub values: *mut *mut crate::fermented::types::dpp::voting::votes::resource_vote::dpp_voting_votes_resource_vote_ResourceVote, - } - - impl ferment::FFIConversionFrom>> for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { - unsafe fn ffi_from_const(ffi: *const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std::collections::BTreeMap> { - let ffi_ref = &*ffi; - ferment::fold_to_map(ffi_ref.count, ffi_ref.keys, ffi_ref.values, |o| >::ffi_from(o), |o| >::ffi_from_opt(o)) - } - } - - impl ferment::FFIConversionTo>> for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const(obj: std::collections::BTreeMap>) -> *const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment::boxed(Self { count: obj.len(), keys: ferment::to_complex_group(obj.keys().cloned()), values: ferment::to_opt_complex_group(obj.values().cloned()) }) } } - - impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_vec_ptr(self.keys, self.count); - ferment::unbox_any_vec_ptr(self.values, self.count); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor(count: usize, keys: *mut *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, values: *mut *mut crate::fermented::types::dpp::voting::votes::resource_vote::dpp_voting_votes_resource_vote_ResourceVote) -> *mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment::boxed(std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count, keys, values }) } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy(ffi: *mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { - pub count: usize, - pub values: *mut *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Voter, - } - - impl ferment::FFIConversionFrom> for std_collections_BTreeSet_drive_proof_verifier_types_Voter { - unsafe fn ffi_from_const(ffi: *const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std::collections::BTreeSet { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const(obj: std::collections::BTreeSet) -> *const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor(count: usize, values: *mut *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_Voter) -> *mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment::boxed(std_collections_BTreeSet_drive_proof_verifier_types_Voter { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy(ffi: *mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { - pub count: usize, - pub keys: *mut *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - pub values: *mut *mut crate::fermented::types::dpp::voting::contender_structs::contender::dpp_voting_contender_structs_contender_ContenderWithSerializedDocument, - } - - impl ferment::FFIConversionFrom> for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { - unsafe fn ffi_from_const(ffi: *const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std::collections::BTreeMap { - let ffi_ref = &*ffi; - ferment::fold_to_map(ffi_ref.count, ffi_ref.keys, ffi_ref.values, |o| >::ffi_from(o), |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const(obj: std::collections::BTreeMap) -> *const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment::boxed(Self { count: obj.len(), keys: ferment::to_complex_group(obj.keys().cloned()), values: ferment::to_complex_group(obj.values().cloned()) }) } } - - impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_vec_ptr(self.keys, self.count); - ferment::unbox_any_vec_ptr(self.values, self.count); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor(count: usize, keys: *mut *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, values: *mut *mut crate::fermented::types::dpp::voting::contender_structs::contender::dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> *mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment::boxed(std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count, keys, values }) } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy(ffi: *mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_Vec_dpp_document_Document_err_String { - pub ok: *mut crate::fermented::generics::Vec_dpp_document_Document, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom, String>> for Result_ok_Vec_dpp_document_Document_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_Vec_dpp_document_Document_err_String) -> Result, String> { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >>::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo, String>> for Result_ok_Vec_dpp_document_Document_err_String { - unsafe fn ffi_to_const(obj: Result, String>) -> *const Result_ok_Vec_dpp_document_Document_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_Vec_dpp_document_Document_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor(ok: *mut crate::fermented::generics::Vec_dpp_document_Document, error: *mut std::os::raw::c_char) -> *mut Result_ok_Vec_dpp_document_Document_err_String { ferment::boxed(Result_ok_Vec_dpp_document_Document_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy(ffi: *mut Result_ok_Vec_dpp_document_Document_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Tuple_platform_value_Value_platform_value_Value { - pub o_0: *mut crate::fermented::types::platform_value::platform_value_Value, - pub o_1: *mut crate::fermented::types::platform_value::platform_value_Value, - } - - impl ferment::FFIConversionFrom<(platform_value::Value, platform_value::Value)> for Tuple_platform_value_Value_platform_value_Value { - unsafe fn ffi_from_const(ffi: *const Tuple_platform_value_Value_platform_value_Value) -> (platform_value::Value, platform_value::Value) { - let ffi_ref = &*ffi; - (ferment::FFIConversionFrom::ffi_from(ffi_ref.o_0), ferment::FFIConversionFrom::ffi_from(ffi_ref.o_1)) - } - } - - impl ferment::FFIConversionTo<(platform_value::Value, platform_value::Value)> for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const(obj: (platform_value::Value, platform_value::Value)) -> *const Tuple_platform_value_Value_platform_value_Value { ferment::boxed(Self { o_0: ferment::FFIConversionTo::ffi_to(obj.0), o_1: ferment::FFIConversionTo::ffi_to(obj.1) }) } } - - impl Drop for Tuple_platform_value_Value_platform_value_Value { - fn drop(&mut self) { - unsafe { - ferment::unbox_any(self.o_0); - ferment::unbox_any(self.o_1); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor(o_0: *mut crate::fermented::types::platform_value::platform_value_Value, o_1: *mut crate::fermented::types::platform_value::platform_value_Value) -> *mut Tuple_platform_value_Value_platform_value_Value { ferment::boxed(Tuple_platform_value_Value_platform_value_Value { o_0, o_1 }) } - - #[no_mangle] - pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy(ffi: *mut Tuple_platform_value_Value_platform_value_Value) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_dpp_document_Document_err_String { - pub ok: *mut crate::fermented::types::dpp::document::dpp_document_Document, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_dpp_document_Document_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_dpp_document_Document_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_dpp_document_Document_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_dpp_document_Document_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_dpp_document_Document_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor(ok: *mut crate::fermented::types::dpp::document::dpp_document_Document, error: *mut std::os::raw::c_char) -> *mut Result_ok_dpp_document_Document_err_String { ferment::boxed(Result_ok_dpp_document_Document_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy(ffi: *mut Result_ok_dpp_document_Document_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_drive_proof_verifier_types_ContestedResource { - pub count: usize, - pub values: *mut *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ContestedResource, - } - - impl ferment::FFIConversionFrom> for Vec_drive_proof_verifier_types_ContestedResource { - unsafe fn ffi_from_const(ffi: *const Vec_drive_proof_verifier_types_ContestedResource) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_drive_proof_verifier_types_ContestedResource { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor(count: usize, values: *mut *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ContestedResource) -> *mut Vec_drive_proof_verifier_types_ContestedResource { ferment::boxed(Vec_drive_proof_verifier_types_ContestedResource { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy(ffi: *mut Vec_drive_proof_verifier_types_ContestedResource) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { - pub count: usize, - pub values: *mut *mut crate::fermented::generics::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll, - } - - impl ferment::FFIConversionFrom)>> for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { - unsafe fn ffi_from_const(ffi: *const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec<(dpp::prelude::TimestampMillis, Vec)> { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo)>> for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const(obj: Vec<(dpp::prelude::TimestampMillis, Vec)>) -> *const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor(count: usize, values: *mut *mut crate::fermented::generics::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> *mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment::boxed(Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy(ffi: *mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { - pub count: usize, - pub values: *mut *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey, - } - - impl ferment::FFIConversionFrom> for Vec_dpp_identity_identity_public_key_IdentityPublicKey { - unsafe fn ffi_from_const(ffi: *const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor(count: usize, values: *mut *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey) -> *mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment::boxed(Vec_dpp_identity_identity_public_key_IdentityPublicKey { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy(ffi: *mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_platform_value_Value { - pub count: usize, - pub values: *mut *mut crate::fermented::types::platform_value::platform_value_Value, - } - - impl ferment::FFIConversionFrom> for Vec_platform_value_Value { - unsafe fn ffi_from_const(ffi: *const Vec_platform_value_Value) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_platform_value_Value { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_platform_value_Value { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_platform_value_Value { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_platform_value_Value_ctor(count: usize, values: *mut *mut crate::fermented::types::platform_value::platform_value_Value) -> *mut Vec_platform_value_Value { ferment::boxed(Vec_platform_value_Value { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_platform_value_Value_destroy(ffi: *mut Vec_platform_value_Value) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { - pub ok: *mut crate::fermented::types::dpp::voting::votes::dpp_voting_votes_Vote, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom, String>> for Result_ok_Option_dpp_voting_votes_Vote_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result, String> { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from_opt(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo, String>> for Result_ok_Option_dpp_voting_votes_Vote_err_String { - unsafe fn ffi_to_const(obj: Result, String>) -> *const Result_ok_Option_dpp_voting_votes_Vote_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to_opt(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor(ok: *mut crate::fermented::types::dpp::voting::votes::dpp_voting_votes_Vote, error: *mut std::os::raw::c_char) -> *mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment::boxed(Result_ok_Option_dpp_voting_votes_Vote_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy(ffi: *mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { - pub ok: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ContestedResources, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor(ok: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_ContestedResources, error: *mut std::os::raw::c_char) -> *mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment::boxed(Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy(ffi: *mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_String { - pub count: usize, - pub values: *mut *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Vec_String { - unsafe fn ffi_from_const(ffi: *const Vec_String) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_String { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_String { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_String { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr_composer(self.values, self.count, ferment::unbox_string); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_String_ctor(count: usize, values: *mut *mut std::os::raw::c_char) -> *mut Vec_String { ferment::boxed(Vec_String { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_String_destroy(ffi: *mut Vec_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { - pub count: usize, - pub keys: *mut *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID, - pub values: *mut *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey, - } - - impl ferment::FFIConversionFrom> for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { - unsafe fn ffi_from_const(ffi: *const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std::collections::BTreeMap { - let ffi_ref = &*ffi; - ferment::fold_to_map(ffi_ref.count, ffi_ref.keys, ffi_ref.values, |o| >::ffi_from(o), |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const(obj: std::collections::BTreeMap) -> *const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment::boxed(Self { count: obj.len(), keys: ferment::to_complex_group(obj.keys().cloned()), values: ferment::to_complex_group(obj.values().cloned()) }) } } - - impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_vec_ptr(self.keys, self.count); - ferment::unbox_any_vec_ptr(self.values, self.count); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor(count: usize, keys: *mut *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_KeyID, values: *mut *mut crate::fermented::types::dpp::identity::identity_public_key::dpp_identity_identity_public_key_IdentityPublicKey) -> *mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment::boxed(std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count, keys, values }) } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy(ffi: *mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Arr_u8_32 { - pub count: usize, - pub values: *mut u8, - } - - impl ferment::FFIConversionFrom<[u8; 32]> for Arr_u8_32 { - unsafe fn ffi_from_const(ffi: *const Arr_u8_32) -> [u8; 32] { - let ffi_ref = &*ffi; - let vec: Vec = ferment::from_primitive_group(ffi_ref.values, ffi_ref.count); - vec.try_into().unwrap() - } - } - - impl ferment::FFIConversionTo<[u8; 32]> for Arr_u8_32 { unsafe fn ffi_to_const(obj: [u8; 32]) -> *const Arr_u8_32 { ferment::boxed(Self { count: obj.len(), values: ferment::to_primitive_group(obj.into_iter()) }) } } - - impl Drop for Arr_u8_32 { fn drop(&mut self) { unsafe { ferment::unbox_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Arr_u8_32_ctor(count: usize, values: *mut u8) -> *mut Arr_u8_32 { ferment::boxed(Arr_u8_32 { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Arr_u8_32_destroy(ffi: *mut Arr_u8_32) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_drive_query_ordering_OrderClause { - pub count: usize, - pub values: *mut *mut crate::fermented::types::drive::query::ordering::drive_query_ordering_OrderClause, - } - - impl ferment::FFIConversionFrom> for Vec_drive_query_ordering_OrderClause { - unsafe fn ffi_from_const(ffi: *const Vec_drive_query_ordering_OrderClause) -> Vec { - let ffi_ref = &*ffi; - ferment::from_complex_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_drive_query_ordering_OrderClause { ferment::boxed(Self { count: obj.len(), values: ferment::to_complex_group(obj.into_iter()) }) } } - - impl Drop for Vec_drive_query_ordering_OrderClause { fn drop(&mut self) { unsafe { ferment::unbox_any_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor(count: usize, values: *mut *mut crate::fermented::types::drive::query::ordering::drive_query_ordering_OrderClause) -> *mut Vec_drive_query_ordering_OrderClause { ferment::boxed(Vec_drive_query_ordering_OrderClause { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy(ffi: *mut Vec_drive_query_ordering_OrderClause) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_dpp_identity_identity_Identity_err_String { - pub ok: *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_dpp_identity_identity_Identity_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_dpp_identity_identity_Identity_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_dpp_identity_identity_Identity_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_dpp_identity_identity_Identity_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor(ok: *mut crate::fermented::types::dpp::identity::identity::dpp_identity_identity_Identity, error: *mut std::os::raw::c_char) -> *mut Result_ok_dpp_identity_identity_Identity_err_String { ferment::boxed(Result_ok_dpp_identity_identity_Identity_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy(ffi: *mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Vec_u8 { - pub count: usize, - pub values: *mut u8, - } - - impl ferment::FFIConversionFrom> for Vec_u8 { - unsafe fn ffi_from_const(ffi: *const Vec_u8) -> Vec { - let ffi_ref = &*ffi; - ferment::from_primitive_group(ffi_ref.values, ffi_ref.count) - } - } - - impl ferment::FFIConversionTo> for Vec_u8 { unsafe fn ffi_to_const(obj: Vec) -> *const Vec_u8 { ferment::boxed(Self { count: obj.len(), values: ferment::to_primitive_group(obj.into_iter()) }) } } - - impl Drop for Vec_u8 { fn drop(&mut self) { unsafe { ferment::unbox_vec_ptr(self.values, self.count); } } } - - #[no_mangle] - pub unsafe extern "C" fn Vec_u8_ctor(count: usize, values: *mut u8) -> *mut Vec_u8 { ferment::boxed(Vec_u8 { count, values }) } - - #[no_mangle] - pub unsafe extern "C" fn Vec_u8_destroy(ffi: *mut Vec_u8) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { - pub ok: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_VotePollsGroupedByTimestamp, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom> for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { - unsafe fn ffi_to_const(obj: Result) -> *const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor(ok: *mut crate::fermented::types::drive_proof_verifier::types::drive_proof_verifier_types_VotePollsGroupedByTimestamp, error: *mut std::os::raw::c_char) -> *mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment::boxed(Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy(ffi: *mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { - pub o_0: *mut crate::fermented::types::dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo, - pub o_1: *mut crate::fermented::types::dpp::block::block_info::dpp_block_block_info_BlockInfo, - } - - impl ferment::FFIConversionFrom<(dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo, dpp::block::block_info::BlockInfo)> for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { - unsafe fn ffi_from_const(ffi: *const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo, dpp::block::block_info::BlockInfo) { - let ffi_ref = &*ffi; - (ferment::FFIConversionFrom::ffi_from(ffi_ref.o_0), ferment::FFIConversionFrom::ffi_from(ffi_ref.o_1)) - } - } - - impl ferment::FFIConversionTo<(dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo, dpp::block::block_info::BlockInfo)> for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const(obj: (dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::ContestedDocumentVotePollWinnerInfo, dpp::block::block_info::BlockInfo)) -> *const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment::boxed(Self { o_0: ferment::FFIConversionTo::ffi_to(obj.0), o_1: ferment::FFIConversionTo::ffi_to(obj.1) }) } } - - impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { - fn drop(&mut self) { - unsafe { - ferment::unbox_any(self.o_0); - ferment::unbox_any(self.o_1); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor(o_0: *mut crate::fermented::types::dpp::voting::vote_info_storage::contested_document_vote_poll_winner_info::dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo, o_1: *mut crate::fermented::types::dpp::block::block_info::dpp_block_block_info_BlockInfo) -> *mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment::boxed(Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0, o_1 }) } - - #[no_mangle] - pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy(ffi: *mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct platform_mobile_provider_Cache_platform_value_types_identifier_Identifier_dpp_data_contract_DataContract { - pub obj: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier, - } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_provider_Cache_platform_value_types_identifier_Identifier_dpp_data_contract_DataContract_ctor(obj: *mut crate::fermented::types::platform_value::types::identifier::platform_value_types_identifier_Identifier) -> *mut platform_mobile_provider_Cache_platform_value_types_identifier_Identifier_dpp_data_contract_DataContract { ferment::boxed(platform_mobile_provider_Cache_platform_value_types_identifier_Identifier_dpp_data_contract_DataContract { obj }) } - - #[no_mangle] - pub unsafe extern "C" fn platform_mobile_provider_Cache_platform_value_types_identifier_Identifier_dpp_data_contract_DataContract_destroy(ffi: *mut platform_mobile_provider_Cache_platform_value_types_identifier_Identifier_dpp_data_contract_DataContract) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct std_collections_Map_keys_String_values_platform_value_Value { - pub count: usize, - pub keys: *mut *mut std::os::raw::c_char, - pub values: *mut *mut crate::fermented::types::platform_value::platform_value_Value, - } - - impl ferment::FFIConversionFrom> for std_collections_Map_keys_String_values_platform_value_Value { - unsafe fn ffi_from_const(ffi: *const std_collections_Map_keys_String_values_platform_value_Value) -> std::collections::BTreeMap { - let ffi_ref = &*ffi; - ferment::fold_to_map(ffi_ref.count, ffi_ref.keys, ffi_ref.values, |o| >::ffi_from(o), |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo> for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const(obj: std::collections::BTreeMap) -> *const std_collections_Map_keys_String_values_platform_value_Value { ferment::boxed(Self { count: obj.len(), keys: ferment::to_complex_group(obj.keys().cloned()), values: ferment::to_complex_group(obj.values().cloned()) }) } } - - impl Drop for std_collections_Map_keys_String_values_platform_value_Value { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_vec_ptr_composer(self.keys, self.count, ferment::unbox_string); - ferment::unbox_any_vec_ptr(self.values, self.count); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor(count: usize, keys: *mut *mut std::os::raw::c_char, values: *mut *mut crate::fermented::types::platform_value::platform_value_Value) -> *mut std_collections_Map_keys_String_values_platform_value_Value { ferment::boxed(std_collections_Map_keys_String_values_platform_value_Value { count, keys, values }) } - - #[no_mangle] - pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy(ffi: *mut std_collections_Map_keys_String_values_platform_value_Value) { ferment::unbox_any(ffi); } - - #[repr(C)] - #[derive(Clone)] - pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { - pub ok: *mut crate::fermented::generics::Vec_dpp_identity_identity_public_key_IdentityPublicKey, - pub error: *mut std::os::raw::c_char, - } - - impl ferment::FFIConversionFrom, String>> for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { - unsafe fn ffi_from_const(ffi: *const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result, String> { - let ffi_ref = &*ffi; - ferment::fold_to_result(ffi_ref.ok, |o| >>::ffi_from(o), ffi_ref.error, |o| >::ffi_from(o)) - } - } - - impl ferment::FFIConversionTo, String>> for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { - unsafe fn ffi_to_const(obj: Result, String>) -> *const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { - ferment::boxed({ - let (ok, error) = ferment::to_result(obj, |o| ferment::FFIConversionTo::ffi_to(o), |o| ferment::FFIConversionTo::ffi_to(o)); - Self { ok, error } - }) - } - } - - impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { - fn drop(&mut self) { - unsafe { - ferment::unbox_any_opt(self.ok); - ferment::unbox_any_opt(self.error); - } - } - } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor(ok: *mut crate::fermented::generics::Vec_dpp_identity_identity_public_key_IdentityPublicKey, error: *mut std::os::raw::c_char) -> *mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment::boxed(Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok, error }) } - - #[no_mangle] - pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy(ffi: *mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment::unbox_any(ffi); } -} \ No newline at end of file +# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod sync { use crate as dash_sdk_bindings ; } pub mod core { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod platform { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod builders { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; } } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod readers { use crate as dash_sdk_bindings ; } pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod ser { use crate as dash_sdk_bindings ; } pub mod de { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod macros { use crate as dash_sdk_bindings ; } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod unproved { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } } pub mod verify { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } } pub mod token { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_elements { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_restored_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; } } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod vote_storage_form { use crate as dash_sdk_bindings ; } pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } pub mod queue { use crate as dash_sdk_bindings ; pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } } } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod address_funds { use crate as dash_sdk_bindings ; pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } } pub mod platform_address { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod config { use crate as dash_sdk_bindings ; pub mod moderation { use crate as dash_sdk_bindings ; pub mod reason { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod array { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; } } pub mod distribution_function { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod encode { use crate as dash_sdk_bindings ; } } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod util { use crate as dash_sdk_bindings ; pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod vec { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod canonical { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod convert { use crate as dash_sdk_bindings ; } } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer { use crate as dash_sdk_bindings ; } pub mod safe_integer_map { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } } pub mod bls { use crate as dash_sdk_bindings ; } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fee { use crate as dash_sdk_bindings ; pub mod default_costs { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } } } pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod unshield { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod basic { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod state { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } pub mod serialize { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod serialization_traits { use crate as dash_sdk_bindings ; pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file diff --git a/dash-sdk-bindings/rust-toolchain.toml b/dash-sdk-bindings/rust-toolchain.toml index 69e1244b..32069f57 100644 --- a/dash-sdk-bindings/rust-toolchain.toml +++ b/dash-sdk-bindings/rust-toolchain.toml @@ -2,4 +2,4 @@ # Keep in sync with ../platform-mobile/rust-toolchain.toml and ../../platform/rust-toolchain.toml. # All checkouts share one cargo target dir (~/.cargo/config.toml) and rs-sdk's cdylib target # is emitted as an unhashed libdash_sdk.rlib, so a different toolchain here clobbers it (E0514). -channel = "1.98" +channel = "1.98.1" diff --git a/platform-mobile/rust-toolchain.toml b/platform-mobile/rust-toolchain.toml index 99fc58b9..e0745b39 100644 --- a/platform-mobile/rust-toolchain.toml +++ b/platform-mobile/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] # Keep in sync with ../../platform/rust-toolchain.toml -channel = "1.92" +channel = "1.98.1" diff --git a/platform-mobile/src/config.rs b/platform-mobile/src/config.rs index 57b9824e..a9df3952 100644 --- a/platform-mobile/src/config.rs +++ b/platform-mobile/src/config.rs @@ -6,6 +6,7 @@ use dash_sdk::dapi_client::AddressList; use std::sync::Arc; use std::str::FromStr; use dpp::data_contract::DataContract; +use dpp::dashcore::Network; use drive_proof_verifier::ContextProvider; use drive_proof_verifier::error::Error::ContextProviderError; use serde::Deserialize; @@ -20,7 +21,6 @@ use dash_sdk::{RequestSettings, Sdk}; use dpp::data_contract::accessors::v0::DataContractV0Getters; use ferment::{boxed, unbox_any}; use dash_sdk::sdk::Uri; -use platform_version::version::PlatformVersion; use platform_version::version::v7::PLATFORM_V7; use tokio::runtime::{Builder, Runtime}; use crate::logs::setup_logs; @@ -269,11 +269,11 @@ impl Config { /// new test vectors during execution /// * `offline-testing` is set - use mock implementation and /// load existing test vectors from disk - pub async fn setup_api(&self, version: &'static PlatformVersion) -> Arc { + pub async fn setup_api(&self) -> Arc { let sdk = { // Dump all traffic to disk let builder = dash_sdk::SdkBuilder::new(self.address_list()) - .with_version(version) + .with_network(self.network()) .with_core( &self.core_ip.as_str(), self.core_port, @@ -281,28 +281,25 @@ impl Config { &self.core_password.as_str(), ); - builder - .with_version(version) - .build().expect("cannot initialize api") + builder.build().expect("cannot initialize api") }; sdk.into() } - pub async fn setup_api_list(&self, address_list: Vec, - version: &'static PlatformVersion) -> Arc { + pub async fn setup_api_list(&self, address_list: Vec) -> Arc { let sdk = { // Dump all traffic to disk - let builder = dash_sdk::SdkBuilder::new(self.new_address_list(address_list)).with_core( - &self.core_ip.as_str(), - self.core_port, - &self.core_user.as_str(), - &self.core_password.as_str(), - ); + let builder = dash_sdk::SdkBuilder::new(self.new_address_list(address_list)) + .with_network(self.network()) + .with_core( + &self.core_ip.as_str(), + self.core_port, + &self.core_user.as_str(), + &self.core_password.as_str(), + ); - builder - .with_version(version) - .build().expect("cannot initialize api") + builder.build().expect("cannot initialize api") }; sdk.into() @@ -319,7 +316,8 @@ impl Config { ).expect("context provider"); let mut sdk = { // Dump all traffic to disk - let builder = dash_sdk::SdkBuilder::new(self.address_list()); + let builder = dash_sdk::SdkBuilder::new(self.address_list()) + .with_network(self.network()); builder.build().expect("cannot initialize api") }; // not ideal because context provider has a clone of the sdk @@ -337,7 +335,6 @@ impl Config { connect_timeout: usize, timeout: usize, retries: usize, - version: &'static PlatformVersion ) -> Arc { let mut context_provider = CallbackContextProvider::new( context_provider_context, @@ -360,6 +357,7 @@ impl Config { let mut sdk = { // Dump all traffic to disk let builder = dash_sdk::SdkBuilder::new(self.address_list()) + .with_network(self.network()) .with_settings( RequestSettings { connect_timeout: Some(Duration::from_secs(connect_timeout as u64)), @@ -369,7 +367,6 @@ impl Config { max_decoding_message_size: Some(16 * 1024 * 1024) } ) - .with_version(&version) .with_context_provider(context_provider_clone); builder.build().expect("cannot initialize api") }; @@ -386,7 +383,6 @@ impl Config { d: u64, data_contract_cache: Arc, address_list: Vec, - version: &'static PlatformVersion ) -> Arc { let mut context_provider = CallbackContextProvider::new( context, @@ -398,11 +394,9 @@ impl Config { ).expect("context provider"); let mut sdk = { // Dump all traffic to disk - let builder = dash_sdk::SdkBuilder::new(self.new_address_list(address_list)); - builder - .with_version(version) - .build() - .expect("cannot initialize api") + let builder = dash_sdk::SdkBuilder::new(self.new_address_list(address_list)) + .with_network(self.network()); + builder.build().expect("cannot initialize api") }; // not ideal because context provider has a clone of the sdk context_provider.set_sdk(Some(Arc::new(sdk.clone()))); @@ -419,4 +413,12 @@ impl Config { fn default_is_testnet() -> bool { true } + + fn network(&self) -> Network { + if self.is_testnet { + Network::Testnet + } else { + Network::Mainnet + } + } } diff --git a/platform-mobile/src/core.rs b/platform-mobile/src/core.rs index 7797cb35..62b7a620 100644 --- a/platform-mobile/src/core.rs +++ b/platform-mobile/src/core.rs @@ -1,7 +1,6 @@ use dapi_grpc::core::v0::{GetTransactionRequest}; use dash_sdk::dapi_client::DapiRequestExecutor; use dash_sdk::RequestSettings; -use platform_version::version::LATEST_PLATFORM_VERSION; use tokio::runtime::Builder; use crate::config::{Config, EntryPoint}; use crate::logs::setup_logs; @@ -20,7 +19,7 @@ pub fn get_transaction(txid: [u8; 32], quorum_public_key_callback: u64, data_con // Execute the async block using the Tokio runtime rt.block_on(async { let cfg = Config::new(); - let sdk = cfg.setup_api(LATEST_PLATFORM_VERSION).await; + let sdk = cfg.setup_api().await; let tx_info_result = sdk.execute( GetTransactionRequest { @@ -58,4 +57,4 @@ pub fn get_transaction_sdk(rust_sdk: * mut DashSdk, txid: [u8; 32]) -> Result return Err(error.to_string()) } }) -} \ No newline at end of file +} diff --git a/platform-mobile/src/put.rs b/platform-mobile/src/put.rs index d3f5c1c0..5009d704 100644 --- a/platform-mobile/src/put.rs +++ b/platform-mobile/src/put.rs @@ -44,7 +44,6 @@ use dpp::util::entropy_generator::{DefaultEntropyGenerator, EntropyGenerator}; use platform_value::{Identifier, IdentifierBytes32, Value}; use platform_value::string_encoding::Encoding; use platform_value::types::binary_data::BinaryData; -use platform_version::version::PlatformVersion; use simple_signer::single_key_signer::SingleKeySigner; use serde::{Deserialize, Serialize}; use tokio::runtime::Builder; @@ -666,7 +665,7 @@ pub fn put_document_sdk( block_height, core_block_height, entropy, - PlatformVersion::latest() + sdk.version() ); let new_document = match new_document_result { diff --git a/platform-mobile/src/put_test.rs b/platform-mobile/src/put_test.rs index ae40075d..396d1eff 100644 --- a/platform-mobile/src/put_test.rs +++ b/platform-mobile/src/put_test.rs @@ -26,7 +26,7 @@ use dpp::state_transition::StateTransition; use dpp::util::entropy_generator::{DefaultEntropyGenerator, EntropyGenerator}; use platform_value::{BinaryData, Identifier, Value}; use platform_value::string_encoding::Encoding; -use platform_version::version::{LATEST_PLATFORM_VERSION, PlatformVersion}; +use platform_version::version::PlatformVersion; use rand::random; use simple_signer::single_key_signer::SingleKeySigner; use simple_signer::signer::SimpleSigner; @@ -308,7 +308,7 @@ fn test_put_txmetadata_contract() { // Your async code here let cfg = if testnet { Config::new_testnet() } else { Config::new_mainnet() }; tracing::warn!("Setting up SDK"); - let sdk = cfg.setup_api(LATEST_PLATFORM_VERSION).await; + let sdk = cfg.setup_api().await; tracing::warn!("Finished SDK, {:?}", sdk); tracing::warn!("Set up entropy, data contract and signer"); @@ -366,4 +366,4 @@ fn test_put_txmetadata_contract() { Ok(data_contract) => tracing::info!("Success!\n{}: {:?}", data_contract.id(), data_contract), Err(err) => panic!("{:?}", err.to_string()) }; -} \ No newline at end of file +} diff --git a/platform-mobile/src/sdk.rs b/platform-mobile/src/sdk.rs index e43010f9..d5f0590a 100644 --- a/platform-mobile/src/sdk.rs +++ b/platform-mobile/src/sdk.rs @@ -7,9 +7,6 @@ use dpp::data_contract::accessors::v0::DataContractV0Getters; use dpp::data_contract::DataContract; use ferment::{boxed, unbox_any}; use platform_value::Identifier; -use platform_version::version::PlatformVersion; -use platform_version::version::v12::PLATFORM_V12; -use platform_version::version::v11::PLATFORM_V11; use tokio::runtime::{Builder, Runtime}; use crate::config::{Config, EntryPoint}; use crate::logs::setup_logs; @@ -62,7 +59,6 @@ pub fn update_sdk_with_address_list( quorum_public_key_callback: u64, data_contract_callback: u64, address_list: Vec, - version: &'static PlatformVersion ) { let rt = unsafe { (*rust_sdk).get_runtime() }; @@ -78,7 +74,6 @@ pub fn update_sdk_with_address_list( data_contract_callback, unsafe { (*rust_sdk).data_contract_cache.clone() }, address_list, - version ).await; tracing::info!("sdk created"); @@ -143,13 +138,7 @@ pub fn create_dash_sdk_with_context( } else { Config::new_mainnet() }; - let version: &'static PlatformVersion = if is_testnet { - &PLATFORM_V11 - } else { - &PLATFORM_V11 - }; tracing::info!("configuring for testnet={} using platform port={}", cfg.is_testnet, cfg.platform_port); - tracing::info!("configuring platform version {:?}", version); let data_contract_cache = Arc::new(DataContractCache::new(NonZeroUsize::new(100).expect("Non Zero"))); let sdk = if quorum_public_key_callback != 0 { // use the callbacks to obtain quorum public keys @@ -161,11 +150,10 @@ pub fn create_dash_sdk_with_context( connect_timeout, timeout, retries, - &version ).await } else { // use Dash Core for quorum public keys - cfg.setup_api(version).await + cfg.setup_api().await }; tracing::info!("Sdk version {:?}", sdk.version()); DashSdk { @@ -207,18 +195,13 @@ pub fn create_dash_sdk_using_single_evonode( } else { Config::new_mainnet() }; - let version: &'static PlatformVersion = if is_testnet { - &PLATFORM_V11 - } else { - &PLATFORM_V11 - }; let data_contract_cache = Arc::new(DataContractCache::new(NonZeroUsize::new(100).expect("Non Zero"))); let sdk = if quorum_public_key_callback != 0 { // use the callbacks to obtain quorum public keys - cfg.setup_api_with_callbacks_cache_list(std::ptr::null(), quorum_public_key_callback, data_contract_callback, data_contract_cache.clone(), vec![evonode], version).await + cfg.setup_api_with_callbacks_cache_list(std::ptr::null(), quorum_public_key_callback, data_contract_callback, data_contract_cache.clone(), vec![evonode]).await } else { // use Dash Core for quorum public keys - cfg.setup_api_list(vec![evonode], version).await + cfg.setup_api_list(vec![evonode]).await }; tracing::info!("Sdk version {:?}", sdk.version()); DashSdk { From 949074e0523e54df597fed8d346f564714881acb Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Mon, 28 Sep 2026 15:35:24 -0700 Subject: [PATCH 03/21] feat: expose the network's Platform protocol version Add get_protocol_version_with_sdk and refresh_protocol_version_with_sdk exports (fermented bindings regenerated) and DapiClient.getProtocolVersion() / refreshProtocolVersion() wrappers. refresh issues a proven getEpochsInfo query and ratchets dash-sdk up to the version the network runs, so wallets can pick fees that depend on the activated protocol version (e.g. the contested username prefunded voting balance, 0.2 -> 0.1 DASH in v14). Co-Authored-By: Claude Opus 5.5 --- .../src/main/rust/src/fermented.rs | 2 +- dash-sdk-bindings/src/fermented.rs | 2 +- .../dashj/platform/dapiclient/DapiClient.kt | 18 +++++++++++++ platform-mobile/src/sdk.rs | 25 +++++++++++++++++++ 4 files changed, 45 insertions(+), 2 deletions(-) diff --git a/dash-sdk-android/src/main/rust/src/fermented.rs b/dash-sdk-android/src/main/rust/src/fermented.rs index 5f60fbab..aebf654e 100644 --- a/dash-sdk-android/src/main/rust/src/fermented.rs +++ b/dash-sdk-android/src/main/rust/src/fermented.rs @@ -1 +1 @@ -# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod sync { use crate as dash_sdk_bindings ; } pub mod core { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod platform { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod builders { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; } } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod readers { use crate as dash_sdk_bindings ; } pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod ser { use crate as dash_sdk_bindings ; } pub mod de { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod macros { use crate as dash_sdk_bindings ; } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod unproved { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } } pub mod verify { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } } pub mod token { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_elements { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_restored_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; } } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod vote_storage_form { use crate as dash_sdk_bindings ; } pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } pub mod queue { use crate as dash_sdk_bindings ; pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } } } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod address_funds { use crate as dash_sdk_bindings ; pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } } pub mod platform_address { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod config { use crate as dash_sdk_bindings ; pub mod moderation { use crate as dash_sdk_bindings ; pub mod reason { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod array { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; } } pub mod distribution_function { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod encode { use crate as dash_sdk_bindings ; } } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod util { use crate as dash_sdk_bindings ; pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod vec { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod canonical { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod convert { use crate as dash_sdk_bindings ; } } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer { use crate as dash_sdk_bindings ; } pub mod safe_integer_map { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } } pub mod bls { use crate as dash_sdk_bindings ; } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fee { use crate as dash_sdk_bindings ; pub mod default_costs { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } } } pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod unshield { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod basic { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod state { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } pub mod serialize { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod serialization_traits { use crate as dash_sdk_bindings ; pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file +# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod platform_value { use crate as dash_sdk_bindings ; pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod macros { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod system_bytes { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod ser { use crate as dash_sdk_bindings ; } pub mod de { use crate as dash_sdk_bindings ; } } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_elements { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } } pub mod token { use crate as dash_sdk_bindings ; } } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_info { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod system_contracts { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod operations { use crate as dash_sdk_bindings ; pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod queue { use crate as dash_sdk_bindings ; pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_restored_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; } } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_groups { use crate as dash_sdk_bindings ; } pub mod for_add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract { use crate as dash_sdk_bindings ; } pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod new { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod traits { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } } pub mod state_transition_types { use crate as dash_sdk_bindings ; } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod consensus { use crate as dash_sdk_bindings ; pub mod state { use crate as dash_sdk_bindings ; pub mod voting { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod basic { use crate as dash_sdk_bindings ; pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } } pub mod non_consensus_error { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod util { use crate as dash_sdk_bindings ; pub mod vec { use crate as dash_sdk_bindings ; } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod convert { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } } pub mod json_schema { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; pub mod default_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod errors { use crate as dash_sdk_bindings ; } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod instant { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod contender { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod distribution_function { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod encode { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; } pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod array { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod config { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; pub mod reason { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod schema { use crate as dash_sdk_bindings ; } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer { use crate as dash_sdk_bindings ; } pub mod safe_integer_map { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod memo { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod unshield { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } } pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod unproved { use crate as dash_sdk_bindings ; } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } } pub mod verify { use crate as dash_sdk_bindings ; } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod core { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod platform { use crate as dash_sdk_bindings ; pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } pub mod readers { use crate as dash_sdk_bindings ; } } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod transition { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; } pub mod builders { use crate as dash_sdk_bindings ; } } pub mod address_sync { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod sync { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file diff --git a/dash-sdk-bindings/src/fermented.rs b/dash-sdk-bindings/src/fermented.rs index 5f60fbab..aebf654e 100644 --- a/dash-sdk-bindings/src/fermented.rs +++ b/dash-sdk-bindings/src/fermented.rs @@ -1 +1 @@ -# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod sync { use crate as dash_sdk_bindings ; } pub mod core { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod platform { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod builders { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; } } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod readers { use crate as dash_sdk_bindings ; } pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod ser { use crate as dash_sdk_bindings ; } pub mod de { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod macros { use crate as dash_sdk_bindings ; } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod unproved { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } } pub mod verify { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } } pub mod token { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_elements { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_restored_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; } } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod vote_storage_form { use crate as dash_sdk_bindings ; } pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } pub mod queue { use crate as dash_sdk_bindings ; pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } } } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod address_funds { use crate as dash_sdk_bindings ; pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } } pub mod platform_address { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod config { use crate as dash_sdk_bindings ; pub mod moderation { use crate as dash_sdk_bindings ; pub mod reason { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod array { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; } } pub mod distribution_function { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod encode { use crate as dash_sdk_bindings ; } } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod util { use crate as dash_sdk_bindings ; pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod vec { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod canonical { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod convert { use crate as dash_sdk_bindings ; } } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer { use crate as dash_sdk_bindings ; } pub mod safe_integer_map { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } } pub mod bls { use crate as dash_sdk_bindings ; } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fee { use crate as dash_sdk_bindings ; pub mod default_costs { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } } } pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod unshield { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod basic { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod state { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } pub mod serialize { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod serialization_traits { use crate as dash_sdk_bindings ; pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file +# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod platform_value { use crate as dash_sdk_bindings ; pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod macros { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod system_bytes { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod ser { use crate as dash_sdk_bindings ; } pub mod de { use crate as dash_sdk_bindings ; } } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_elements { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } } pub mod token { use crate as dash_sdk_bindings ; } } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_info { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod system_contracts { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod operations { use crate as dash_sdk_bindings ; pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod queue { use crate as dash_sdk_bindings ; pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_restored_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; } } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_groups { use crate as dash_sdk_bindings ; } pub mod for_add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract { use crate as dash_sdk_bindings ; } pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod new { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod traits { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } } pub mod state_transition_types { use crate as dash_sdk_bindings ; } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod consensus { use crate as dash_sdk_bindings ; pub mod state { use crate as dash_sdk_bindings ; pub mod voting { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod basic { use crate as dash_sdk_bindings ; pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } } pub mod non_consensus_error { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod util { use crate as dash_sdk_bindings ; pub mod vec { use crate as dash_sdk_bindings ; } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod convert { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } } pub mod json_schema { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; pub mod default_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod errors { use crate as dash_sdk_bindings ; } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod instant { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod contender { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod distribution_function { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod encode { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; } pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod array { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod config { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; pub mod reason { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod schema { use crate as dash_sdk_bindings ; } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer { use crate as dash_sdk_bindings ; } pub mod safe_integer_map { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod memo { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod unshield { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } } pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod unproved { use crate as dash_sdk_bindings ; } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } } pub mod verify { use crate as dash_sdk_bindings ; } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod core { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod platform { use crate as dash_sdk_bindings ; pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } pub mod readers { use crate as dash_sdk_bindings ; } } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod transition { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; } pub mod builders { use crate as dash_sdk_bindings ; } } pub mod address_sync { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod sync { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file diff --git a/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt b/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt index 110ee5d2..7028e63f 100644 --- a/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt +++ b/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt @@ -1132,6 +1132,24 @@ class DapiClient( throw MaxRetriesReachedException(exceptionList) } + /** + * The highest Platform protocol version learned from proof-verified response + * metadata so far. Makes no network request. + */ + fun getProtocolVersion(): Int { + return dashsdk.platformMobileSdkGetProtocolVersionWithSdk(rustSdk).unwrap().toInt() + } + + /** + * Asks the network for the Platform protocol version it currently runs (a proven + * getEpochsInfo query) and returns it. If the query fails, the highest version + * already learned is returned instead, so the result never goes down. + */ + fun refreshProtocolVersion(): Int { + logger.info("refreshProtocolVersion()") + return dashsdk.platformMobileSdkRefreshProtocolVersionWithSdk(rustSdk).unwrap().toInt() + } + fun getVoteContenders( dataContractId: Identifier, documentType: String, diff --git a/platform-mobile/src/sdk.rs b/platform-mobile/src/sdk.rs index d5f0590a..687bc4c9 100644 --- a/platform-mobile/src/sdk.rs +++ b/platform-mobile/src/sdk.rs @@ -226,6 +226,31 @@ pub fn destroy_dash_sdk(rust_sdk: * mut DashSdk) { unsafe { unbox_any(rust_sdk) }; } +/// The highest Platform protocol version this SDK has learned from proof-verified +/// response metadata. No network request is made; before any Platform query has +/// completed this is the per-network floor. +#[ferment_macro::export] +pub fn get_protocol_version_with_sdk(rust_sdk: * mut DashSdk) -> Result { + let sdk = unsafe { (*rust_sdk).get_sdk() }; + Ok(sdk.protocol_version_number() as u64) +} + +/// Queries the network (a proven getEpochsInfo request) and ratchets the SDK up to +/// the Platform protocol version it currently runs, then returns that version. +/// A failed query is non-fatal inside dash-sdk: the version already learned is kept +/// and returned, so an error here means only that the refresh itself failed. +#[ferment_macro::export] +pub fn refresh_protocol_version_with_sdk(rust_sdk: * mut DashSdk) -> Result { + let rt = unsafe { (*rust_sdk).get_runtime() }; + let sdk = unsafe { (*rust_sdk).get_sdk() }; + rt.block_on(async { + sdk.refresh_protocol_version() + .await + .map(|version| version as u64) + .map_err(|err| err.to_string()) + }) +} + #[test] fn test_dash_sdk() { let my_sdk = create_dash_sdk_using_core_testnet(); From 9b94cd55b5c66dc6e0af395376be25c61922708b Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Thu, 8 Oct 2026 00:25:47 -0700 Subject: [PATCH 04/21] ci: skip retired Android SDK tools package --- .github/workflows/build-and-verify-alignment.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build-and-verify-alignment.yml b/.github/workflows/build-and-verify-alignment.yml index 6459f45d..daa7a30c 100644 --- a/.github/workflows/build-and-verify-alignment.yml +++ b/.github/workflows/build-and-verify-alignment.yml @@ -24,6 +24,9 @@ jobs: - name: Setup Android SDK uses: android-actions/setup-android@v3 + with: + # The action defaults to the retired SDK package "tools". + packages: platform-tools - name: Install Android NDK run: | From 486548b2756b99931fb56518b16766858790730a Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Tue, 20 Oct 2026 10:37:56 -0700 Subject: [PATCH 05/21] feat: upgrade to Platform 5.0 and support App Connect Expose bounded V1 identity keys, DIP-13 application key derivation, remaining budgets, and explicit devnet configuration across Rust, JNI, and Kotlin. Fix V1 native enum widths and index-only response confirmation using the submitted PV14 nonce-derived document ID. Add regression coverage and build against HashEngineering/platform ferment-5.0. --- .../workflows/build-and-verify-alignment.yml | 4 +- DEVNETS.md | 52 ++ build.gradle | 4 +- dash-sdk-android/build.gradle | 10 +- dash-sdk-android/src/main/cpp/CMakeLists.txt | 8 +- dash-sdk-android/src/main/rust/Cargo.lock | 100 ++-- dash-sdk-android/src/main/rust/Cargo.toml | 6 +- dash-sdk-android/src/main/rust/build.rs | 2 +- dash-sdk-android/src/main/rust/cbindgen.toml | 10 +- .../src/main/rust/src/fermented.rs | 2 +- dash-sdk-bindings/Cargo.lock | 100 ++-- dash-sdk-bindings/Cargo.toml | 4 +- dash-sdk-bindings/build.rs | 2 +- dash-sdk-bindings/cbindgen.toml | 13 +- dash-sdk-bindings/src/fermented.rs | 2 +- dash-sdk-java/build.gradle | 14 +- dash-sdk-java/src/main/cpp/clone.h | 185 +++---- dash-sdk-java/src/main/cpp/dpp.h | 6 +- .../src/main/cpp/identity_public_key_v1.h | 27 + dash-sdk-java/src/main/swig/app_connect.i | 3 + dash-sdk-java/src/main/swig/contract_bounds.i | 4 + dash-sdk-java/src/main/swig/credits.i | 25 + dash-sdk-java/src/main/swig/document.i | 4 + dash-sdk-java/src/main/swig/generics/result.i | 5 +- dash-sdk-java/src/main/swig/identity.i | 4 +- .../src/main/swig/identity_public_key.i | 54 +- dash-sdk-java/src/main/swig/ignore.i | 479 +++++++++--------- dash-sdk-java/src/main/swig/key_wallet.i | 15 + dash-sdk-java/src/main/swig/root.i | 3 + dash-sdk-java/src/main/swig/sdk.i | 27 +- .../test/cpp/identity_public_key_v1_test.cpp | 26 + .../sdk/NetworkConfigurationTest.java | 57 +++ dpp/build.gradle | 6 +- .../dashj/platform/dapiclient/DapiClient.kt | 54 +- .../platform/dpp/contract/DataContract.kt | 12 +- .../dpp/identity/ApplicationKeyDerivation.kt | 34 ++ .../platform/dpp/identity/ContractBounds.kt | 10 +- .../dashj/platform/dpp/identity/Identity.kt | 17 +- .../dpp/identity/IdentityPublicKey.kt | 71 ++- .../java/org/dashj/platform/dpp/util/Cbor.kt | 45 +- .../java/org/dashj/platform/sdk/Client.kt | 10 +- .../platform/sdk/client/ClientOptions.kt | 29 +- .../sdk/client/NetworkConfiguration.kt | 53 ++ .../dashj/platform/sdk/platform/Platform.kt | 10 +- .../dpp/identity/AppConnectKeyTest.kt | 99 ++++ .../identity/IdentityNativeReadbackTest.kt | 80 +++ .../sdk/client/NetworkConfigurationTest.kt | 74 +++ platform-mobile/Cargo.lock | 100 ++-- platform-mobile/Cargo.toml | 1 + platform-mobile/src/app_connect.rs | 99 ++++ platform-mobile/src/clone.rs | 7 + platform-mobile/src/config.rs | 95 +++- platform-mobile/src/data_contracts.rs | 57 ++- platform-mobile/src/fetch_identity.rs | 81 ++- platform-mobile/src/key_wallet.rs | 159 ++++++ platform-mobile/src/lib.rs | 3 +- platform-mobile/src/provider.rs | 8 +- platform-mobile/src/put.rs | 189 ++++++- platform-mobile/src/put_test.rs | 4 + platform-mobile/src/sdk.rs | 48 +- rust-toolchain.toml | 3 + 61 files changed, 2062 insertions(+), 653 deletions(-) create mode 100644 DEVNETS.md create mode 100644 dash-sdk-java/src/main/cpp/identity_public_key_v1.h create mode 100644 dash-sdk-java/src/main/swig/app_connect.i create mode 100644 dash-sdk-java/src/main/swig/credits.i create mode 100644 dash-sdk-java/src/main/swig/key_wallet.i create mode 100644 dash-sdk-java/src/test/cpp/identity_public_key_v1_test.cpp create mode 100644 dash-sdk-java/src/test/java/org/dashj/platform/sdk/NetworkConfigurationTest.java create mode 100644 dpp/src/main/java/org/dashj/platform/dpp/identity/ApplicationKeyDerivation.kt create mode 100644 dpp/src/main/java/org/dashj/platform/sdk/client/NetworkConfiguration.kt create mode 100644 dpp/src/test/kotlin/org/dashj/platform/dpp/identity/AppConnectKeyTest.kt create mode 100644 dpp/src/test/kotlin/org/dashj/platform/dpp/identity/IdentityNativeReadbackTest.kt create mode 100644 dpp/src/test/kotlin/org/dashj/platform/sdk/client/NetworkConfigurationTest.kt create mode 100644 platform-mobile/src/app_connect.rs create mode 100644 platform-mobile/src/key_wallet.rs create mode 100644 rust-toolchain.toml diff --git a/.github/workflows/build-and-verify-alignment.yml b/.github/workflows/build-and-verify-alignment.yml index daa7a30c..df018824 100644 --- a/.github/workflows/build-and-verify-alignment.yml +++ b/.github/workflows/build-and-verify-alignment.yml @@ -46,7 +46,7 @@ jobs: ${{ runner.os }}-gradle- - name: clone platform repo - run: git clone --branch ferment-4.0 https://github.com/hashengineering/platform.git ../platform + run: git clone --branch ferment-5.0 https://github.com/HashEngineering/platform.git ../platform - name: clone rs-x11-hash repo run: git clone --branch feat/add-android-support https://github.com/hashengineering/rs-x11-hash.git ../rs-x11-hash @@ -150,4 +150,4 @@ jobs: name: lint-reports path: | **/build/reports/lint-results-*.html - retention-days: 7 \ No newline at end of file + retention-days: 7 diff --git a/DEVNETS.md b/DEVNETS.md new file mode 100644 index 00000000..997bbc15 --- /dev/null +++ b/DEVNETS.md @@ -0,0 +1,52 @@ +# Explicit network configuration + +Use `NetworkConfiguration` to send the same HTTPS endpoints to the Kotlin DAPI +client and the native Platform SDK. The legacy boolean constructors remain for +mainnet/testnet; they cannot identify a named devnet. + +```kotlin +val configuration = NetworkConfiguration.sakura() +val options = ClientOptions.builder() + .network(configuration, sakuraCoreParams) + .build() +val client = Client(options) +``` + +`sakuraCoreParams` must be an operator-configured DashJ `DevNetParams` whose +`devNetName` is `devnet-sakura`. Supply the correct Core P2P port, spork address, +quorum settings and bootstrap peers. These are not inferred from Platform IPs. +Configure the client's masternode-list manager/context provider as usual before +making proof-verified requests. The native explicit-network constructor requires +a quorum-public-key callback; it does not silently use mainnet/testnet Core RPC. + +For direct Platform construction: + +```kotlin +val platform = Platform(sakuraCoreParams, NetworkConfiguration.sakura()) +``` + +For another devnet, supply its name and complete endpoints: + +```kotlin +val configuration = NetworkConfiguration( + "devnet-example", + listOf("https://node.example.org:1443") +) +``` + +Endpoints require HTTPS, an explicit port, and valid certificates. Credentials, +paths other than `/`, queries, fragments, and empty lists are rejected. Explicit +configuration does not disable certificate verification or read Rust `.env` +settings. Do not also supply `dapiAddresses` or a separate address provider in +`ClientOptions`. This is an initial node list, not automatic node discovery. + +The Sakura preset contains the 13 validator IPs advertised by +https://status.testnet.networks.dash.org/n/devnet-sakura/connect on 2026-10-09, +using port 1443. One endpoint was checked with normal TLS verification. Devnet +deployments can change; applications may supply an updated list without an SDK +release. The dashboard advertised protocol v14 at inspection time; the SDK uses +its devnet bootstrap version and normal protocol discovery, not a Sakura-specific +hard-coded protocol version. + +This SDK change does not add a wallet build flavor, provision Core parameters, +publish a Maven artifact, or prove that a funded registration succeeds on Sakura. diff --git a/build.gradle b/build.gradle index aa6264e4..87cefb25 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ buildscript { - ext.version = '4.2.0-SNAPSHOT' + ext.version = '5.0.0-SNAPSHOT' ext.kotlin_version = '2.1.20' ext.dashj_version = '22.0.5' repositories { @@ -26,4 +26,4 @@ allprojects { } group = 'org.dashj.platform' -} \ No newline at end of file +} diff --git a/dash-sdk-android/build.gradle b/dash-sdk-android/build.gradle index 67a5ee5a..15a92649 100644 --- a/dash-sdk-android/build.gradle +++ b/dash-sdk-android/build.gradle @@ -17,6 +17,14 @@ android { testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" consumerProguardFiles "consumer-rules.pro" + def cargoTargetDir = System.getenv('CARGO_TARGET_DIR') + if (cargoTargetDir) { + externalNativeBuild { + cmake { + arguments "-DCARGO_TARGET_DIR=${rootProject.file(cargoTargetDir).absolutePath}" + } + } + } } buildTypes { @@ -220,4 +228,4 @@ afterEvaluate { required { gradle.taskGraph.hasTask("publish") } sign publishing.publications.release } -} \ No newline at end of file +} diff --git a/dash-sdk-android/src/main/cpp/CMakeLists.txt b/dash-sdk-android/src/main/cpp/CMakeLists.txt index 3bfa72fb..fd0c2883 100644 --- a/dash-sdk-android/src/main/cpp/CMakeLists.txt +++ b/dash-sdk-android/src/main/cpp/CMakeLists.txt @@ -60,6 +60,10 @@ file( RUST_PROJECT_FILES "${RUST_SOURCE_DIR}/build.rs" "${RUST_SOURCE_DIR}/src/*.rs" "${RUST_SOURCE_DIR}/Cargo.toml" + "${RUST_SOURCE_DIR}/Cargo.lock" + "${CMAKE_SOURCE_DIR}/../../../../platform-mobile/src/*.rs" + "${CMAKE_SOURCE_DIR}/../../../../platform-mobile/Cargo.toml" + "${CMAKE_SOURCE_DIR}/../../../../rust-toolchain.toml" ) # Set RUSTFLAGS for 16KB page alignment set(RUSTFLAGS_16KB "-C link-arg=-Wl,-z,max-page-size=16384") @@ -68,7 +72,7 @@ set(RUSTFLAGS_16KB "-C link-arg=-Wl,-z,max-page-size=16384") add_custom_command( OUTPUT ${RUST_LIB_OUTPUT_PATH} COMMAND ${CMAKE_COMMAND} -E touch ${RUST_SOURCE_DIR}/Cargo.toml - COMMAND ${CMAKE_COMMAND} -E env RUSTFLAGS=${RUSTFLAGS_16KB} cargo +nightly ndk -t ${RUST_TARGET_TRIPLE} --platform ${ANDROID_API_LEVEL} build --release -Zbuild-std + COMMAND ${CMAKE_COMMAND} -E env CARGO_TARGET_DIR=${CARGO_TARGET_DIR} RUSTFLAGS=${RUSTFLAGS_16KB} cargo +nightly ndk -t ${RUST_TARGET_TRIPLE} --platform ${ANDROID_API_LEVEL} build --release -Zbuild-std WORKING_DIRECTORY ${RUST_SOURCE_DIR} COMMENT "Building Rust library with cargo ndk" DEPENDS ${RUST_PROJECT_FILES} @@ -95,4 +99,4 @@ find_library(ANDROID_LIB android) include_directories(${JNI_INCLUDE_DIRS}, ${CMAKE_SOURCE_DIR}/../../../../dash-sdk-java/src/main/cpp) add_library(sdklib SHARED ${C_SOURCE_FILE}) add_dependencies(sdklib BuildRustLib) -target_link_libraries(sdklib PRIVATE ${RUST_LIB_OUTPUT_PATH} ${LOG_LIB} ${ANDROID_LIB}) \ No newline at end of file +target_link_libraries(sdklib PRIVATE ${RUST_LIB_OUTPUT_PATH} ${LOG_LIB} ${ANDROID_LIB}) diff --git a/dash-sdk-android/src/main/rust/Cargo.lock b/dash-sdk-android/src/main/rust/Cargo.lock index 83c5daeb..7c993510 100644 --- a/dash-sdk-android/src/main/rust/Cargo.lock +++ b/dash-sdk-android/src/main/rust/Cargo.lock @@ -127,7 +127,7 @@ checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" [[package]] name = "app-connect-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -828,7 +828,7 @@ dependencies = [ [[package]] name = "dapi-grpc" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "dash-platform-macros", "futures-core", @@ -881,7 +881,7 @@ dependencies = [ [[package]] name = "dash-async" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "futures", "thiserror 2.0.18", @@ -892,7 +892,7 @@ dependencies = [ [[package]] name = "dash-context-provider" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "dash-async", "dpp", @@ -916,7 +916,7 @@ dependencies = [ [[package]] name = "dash-network" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "cbindgen 0.29.4", "grovedb-bincode", @@ -927,14 +927,14 @@ dependencies = [ [[package]] name = "dash-network-seeds" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "dash-network 0.45.0", ] [[package]] name = "dash-platform-macros" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "heck 0.5.0", "quote", @@ -943,7 +943,7 @@ dependencies = [ [[package]] name = "dash-platform-queries" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -960,7 +960,7 @@ dependencies = [ [[package]] name = "dash-sdk" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "arc-swap", "async-trait", @@ -1043,7 +1043,7 @@ dependencies = [ [[package]] name = "dashcore" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "anyhow", "base64-compat", @@ -1074,7 +1074,7 @@ source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277 [[package]] name = "dashcore-private" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" [[package]] name = "dashcore-rpc" @@ -1092,7 +1092,7 @@ dependencies = [ [[package]] name = "dashcore-rpc" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "dashcore-rpc-json 0.45.0", "hex", @@ -1120,7 +1120,7 @@ dependencies = [ [[package]] name = "dashcore-rpc-json" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "dashcore 0.45.0", "grovedb-bincode", @@ -1145,7 +1145,7 @@ dependencies = [ [[package]] name = "dashcore_hashes" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "dashcore-private 0.45.0", "grovedb-bincode", @@ -1154,7 +1154,7 @@ dependencies = [ [[package]] name = "dashpay-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -1164,7 +1164,7 @@ dependencies = [ [[package]] name = "data-contracts" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "app-connect-contract", "dashpay-contract", @@ -1256,7 +1256,7 @@ dependencies = [ [[package]] name = "document-history-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -1272,7 +1272,7 @@ checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" [[package]] name = "dpns-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -1282,7 +1282,7 @@ dependencies = [ [[package]] name = "dpp" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "anyhow", "async-trait", @@ -1330,7 +1330,7 @@ dependencies = [ [[package]] name = "dpp-json-convertible-derive" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "proc-macro2", "quote", @@ -1339,7 +1339,7 @@ dependencies = [ [[package]] name = "drive" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "byteorder", "derive_more 1.0.0", @@ -1349,6 +1349,7 @@ dependencies = [ "grovedb-bincode", "grovedb-costs", "grovedb-epoch-based-storage-flags", + "grovedb-merk", "grovedb-path", "grovedb-query", "grovedb-version", @@ -1366,7 +1367,7 @@ dependencies = [ [[package]] name = "drive-proof-verifier" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -1817,7 +1818,7 @@ dependencies = [ [[package]] name = "grovedb" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "blake3", "grovedb-bincode", @@ -1860,7 +1861,7 @@ dependencies = [ [[package]] name = "grovedb-bulk-append-tree" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "blake3", "grovedb-bincode", @@ -1877,7 +1878,7 @@ dependencies = [ [[package]] name = "grovedb-costs" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "integer-encoding", "intmap", @@ -1887,7 +1888,7 @@ dependencies = [ [[package]] name = "grovedb-dense-fixed-sized-merkle-tree" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "blake3", "grovedb-bincode", @@ -1900,7 +1901,7 @@ dependencies = [ [[package]] name = "grovedb-element" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "grovedb-bincode", "grovedb-bincode-derive", @@ -1915,7 +1916,7 @@ dependencies = [ [[package]] name = "grovedb-epoch-based-storage-flags" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "grovedb-costs", "hex", @@ -1927,7 +1928,7 @@ dependencies = [ [[package]] name = "grovedb-merk" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "blake3", "byteorder", @@ -1949,7 +1950,7 @@ dependencies = [ [[package]] name = "grovedb-merkle-mountain-range" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "blake3", "grovedb-bincode", @@ -1960,7 +1961,7 @@ dependencies = [ [[package]] name = "grovedb-path" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "hex", ] @@ -1968,7 +1969,7 @@ dependencies = [ [[package]] name = "grovedb-query" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "byteorder", "ed", @@ -1982,7 +1983,7 @@ dependencies = [ [[package]] name = "grovedb-version" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "thiserror 2.0.18", "versioned-feature-core", @@ -1991,7 +1992,7 @@ dependencies = [ [[package]] name = "grovedb-visualize" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "hex", "itertools 0.14.0", @@ -2480,7 +2481,7 @@ dependencies = [ [[package]] name = "key-wallet" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "async-trait", "base58ck", @@ -2502,7 +2503,7 @@ dependencies = [ [[package]] name = "keyword-search-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -2576,7 +2577,7 @@ dependencies = [ [[package]] name = "masternode-reward-shares-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -2635,7 +2636,7 @@ dependencies = [ [[package]] name = "moderation-charters-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -3006,7 +3007,7 @@ dependencies = [ [[package]] name = "platform-encryption" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "aes", "cbc", @@ -3039,6 +3040,7 @@ dependencies = [ "ferment-macro 0.2.3", "hex", "http 0.2.12", + "key-wallet 0.43.0", "lazy_static", "libc", "lru 0.12.5", @@ -3063,7 +3065,7 @@ dependencies = [ [[package]] name = "platform-serialization" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "grovedb-bincode", "platform-version", @@ -3071,7 +3073,7 @@ dependencies = [ [[package]] name = "platform-serialization-derive" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "proc-macro2", "quote", @@ -3081,7 +3083,7 @@ dependencies = [ [[package]] name = "platform-value" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "base64 0.22.1", "bs58", @@ -3102,7 +3104,7 @@ dependencies = [ [[package]] name = "platform-version" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "ferment-macro 0.2.3", "grovedb-bincode", @@ -3114,7 +3116,7 @@ dependencies = [ [[package]] name = "platform-versioning" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "proc-macro2", "quote", @@ -3386,7 +3388,7 @@ dependencies = [ [[package]] name = "rs-dapi-client" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "backon", "chrono", @@ -3779,7 +3781,7 @@ checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" [[package]] name = "simple-signer" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "async-trait", "base64 0.22.1", @@ -4151,7 +4153,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "token-history-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -4722,7 +4724,7 @@ dependencies = [ [[package]] name = "wallet-utils-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -5001,7 +5003,7 @@ checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1" [[package]] name = "withdrawals-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "num_enum 0.5.11", "platform-value", diff --git a/dash-sdk-android/src/main/rust/Cargo.toml b/dash-sdk-android/src/main/rust/Cargo.toml index b67bbe1c..729f90d5 100644 --- a/dash-sdk-android/src/main/rust/Cargo.toml +++ b/dash-sdk-android/src/main/rust/Cargo.toml @@ -32,8 +32,8 @@ ferment = { git = "https://github.com/dashpay/ferment", tag = "v0.2.3", package [build-dependencies] cbindgen = "0.26.0" # ferment = { git = "https://github.com/dashpay/ferment", tag = "v0.2.3", package = "ferment" } -ferment-sys = { git = "https://github.com/dashpay/ferment", tag = "v0.2.3", package = "ferment-sys", features = ["cbindgen_only"] } -#ferment-sys = { git = "https://github.com/dashpay/ferment", tag = "v0.2.3", package = "ferment-sys" } +#ferment-sys = { git = "https://github.com/dashpay/ferment", tag = "v0.2.3", package = "ferment-sys", features = ["cbindgen_only"] } +ferment-sys = { git = "https://github.com/dashpay/ferment", tag = "v0.2.3", package = "ferment-sys" } [patch.crates-io] tower-service = { git = "https://github.com/QuantumExplorer/tower", branch = "fix/indexMap2OnV0413" } @@ -48,4 +48,4 @@ crate-type = ["staticlib"] [features] default = ["verify"] -verify = [] \ No newline at end of file +verify = [] diff --git a/dash-sdk-android/src/main/rust/build.rs b/dash-sdk-android/src/main/rust/build.rs index 83016b46..aeb60642 100644 --- a/dash-sdk-android/src/main/rust/build.rs +++ b/dash-sdk-android/src/main/rust/build.rs @@ -20,4 +20,4 @@ fn main() { Ok(_) => println!("[ferment] [ok]: {SELF_NAME}"), Err(err) => panic!("[ferment] [err]: {}", err) } -} \ No newline at end of file +} diff --git a/dash-sdk-android/src/main/rust/cbindgen.toml b/dash-sdk-android/src/main/rust/cbindgen.toml index e4137dba..1be1a355 100644 --- a/dash-sdk-android/src/main/rust/cbindgen.toml +++ b/dash-sdk-android/src/main/rust/cbindgen.toml @@ -6,6 +6,14 @@ tab_width = 4 documentation_style = "c" style = "tag" include_guard = "rs_sdk_bindings" +after_includes = """ +#ifndef SWIG +using KeyID = uint32_t; +using Purpose = uint8_t; +using SecurityLevel = uint8_t; +using KeyType = uint8_t; +#endif +""" [parse] parse_deps = true @@ -16,4 +24,4 @@ extra_bindings = [] prefix_with_name = false [export] -exclude = ["__android_log_write"] \ No newline at end of file +exclude = ["__android_log_write"] diff --git a/dash-sdk-android/src/main/rust/src/fermented.rs b/dash-sdk-android/src/main/rust/src/fermented.rs index aebf654e..14ea1803 100644 --- a/dash-sdk-android/src/main/rust/src/fermented.rs +++ b/dash-sdk-android/src/main/rust/src/fermented.rs @@ -1 +1 @@ -# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod platform_value { use crate as dash_sdk_bindings ; pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod macros { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod system_bytes { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod ser { use crate as dash_sdk_bindings ; } pub mod de { use crate as dash_sdk_bindings ; } } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_elements { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } } pub mod token { use crate as dash_sdk_bindings ; } } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_info { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod system_contracts { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod operations { use crate as dash_sdk_bindings ; pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod queue { use crate as dash_sdk_bindings ; pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_restored_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; } } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_groups { use crate as dash_sdk_bindings ; } pub mod for_add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract { use crate as dash_sdk_bindings ; } pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod new { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod traits { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } } pub mod state_transition_types { use crate as dash_sdk_bindings ; } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod consensus { use crate as dash_sdk_bindings ; pub mod state { use crate as dash_sdk_bindings ; pub mod voting { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod basic { use crate as dash_sdk_bindings ; pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } } pub mod non_consensus_error { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod util { use crate as dash_sdk_bindings ; pub mod vec { use crate as dash_sdk_bindings ; } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod convert { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } } pub mod json_schema { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; pub mod default_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod errors { use crate as dash_sdk_bindings ; } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod instant { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod contender { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod distribution_function { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod encode { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; } pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod array { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod config { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; pub mod reason { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod schema { use crate as dash_sdk_bindings ; } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer { use crate as dash_sdk_bindings ; } pub mod safe_integer_map { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod memo { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod unshield { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } } pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod unproved { use crate as dash_sdk_bindings ; } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } } pub mod verify { use crate as dash_sdk_bindings ; } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod core { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod platform { use crate as dash_sdk_bindings ; pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } pub mod readers { use crate as dash_sdk_bindings ; } } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod transition { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; } pub mod builders { use crate as dash_sdk_bindings ; } } pub mod address_sync { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod sync { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file +# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod platform_value { use crate as dash_sdk_bindings ; pub mod eq { use crate as dash_sdk_bindings ; } pub mod replace { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } } pub mod index { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod macros { use crate as dash_sdk_bindings ; } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } } pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer_map { use crate as dash_sdk_bindings ; } pub mod safe_integer { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod conversion { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod config { use crate as dash_sdk_bindings ; pub mod moderation { use crate as dash_sdk_bindings ; pub mod reason { use crate as dash_sdk_bindings ; } pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod class_methods { use crate as dash_sdk_bindings ; pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod array { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod string_transformations { use crate as dash_sdk_bindings ; } } } pub mod reference_expression { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod outlives_delete { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod encode { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; } } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } } pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod convert { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } } pub mod vec { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod json_schema { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } pub mod methods { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod instant { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod witness { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod new { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod generate_document_id { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; pub mod consensus { use crate as dash_sdk_bindings ; pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod state { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } } pub mod basic { use crate as dash_sdk_bindings ; pub mod group { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } } pub mod non_consensus_error { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } pub mod group_action { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } pub mod extended_block_info { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod status { use crate as dash_sdk_bindings ; } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod executor { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod error { use crate as dash_sdk_bindings ; } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod verify { use crate as dash_sdk_bindings ; } pub mod unproved { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod platform { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod builders { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; } } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } pub mod contest_fund { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod transition { use crate as dash_sdk_bindings ; } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod readers { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } pub mod requests { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } pub mod epoch { use crate as dash_sdk_bindings ; } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } } pub mod sync { use crate as dash_sdk_bindings ; } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod core { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; } } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod system_contracts { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } pub mod queue { use crate as dash_sdk_bindings ; pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } } } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod operations { use crate as dash_sdk_bindings ; pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } } pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_group_action { use crate as dash_sdk_bindings ; } pub mod add_new_groups { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_groups { use crate as dash_sdk_bindings ; } pub mod for_add_group_action { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod burn_from_pool { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_elements { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod calculate_fee { use crate as dash_sdk_bindings ; } pub mod op { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file diff --git a/dash-sdk-bindings/Cargo.lock b/dash-sdk-bindings/Cargo.lock index b704a8b8..efab5dd0 100644 --- a/dash-sdk-bindings/Cargo.lock +++ b/dash-sdk-bindings/Cargo.lock @@ -101,7 +101,7 @@ checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" [[package]] name = "app-connect-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -799,7 +799,7 @@ dependencies = [ [[package]] name = "dapi-grpc" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "dash-platform-macros", "futures-core", @@ -852,7 +852,7 @@ dependencies = [ [[package]] name = "dash-async" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "futures", "thiserror 2.0.18", @@ -863,7 +863,7 @@ dependencies = [ [[package]] name = "dash-context-provider" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "dash-async", "dpp", @@ -887,7 +887,7 @@ dependencies = [ [[package]] name = "dash-network" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "cbindgen 0.29.4", "grovedb-bincode", @@ -898,14 +898,14 @@ dependencies = [ [[package]] name = "dash-network-seeds" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "dash-network 0.45.0", ] [[package]] name = "dash-platform-macros" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "heck 0.5.0", "quote", @@ -914,7 +914,7 @@ dependencies = [ [[package]] name = "dash-platform-queries" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -931,7 +931,7 @@ dependencies = [ [[package]] name = "dash-sdk" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "arc-swap", "async-trait", @@ -1014,7 +1014,7 @@ dependencies = [ [[package]] name = "dashcore" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "anyhow", "base64-compat", @@ -1045,7 +1045,7 @@ source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277 [[package]] name = "dashcore-private" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" [[package]] name = "dashcore-rpc" @@ -1063,7 +1063,7 @@ dependencies = [ [[package]] name = "dashcore-rpc" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "dashcore-rpc-json 0.45.0", "hex", @@ -1091,7 +1091,7 @@ dependencies = [ [[package]] name = "dashcore-rpc-json" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "dashcore 0.45.0", "grovedb-bincode", @@ -1116,7 +1116,7 @@ dependencies = [ [[package]] name = "dashcore_hashes" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "dashcore-private 0.45.0", "grovedb-bincode", @@ -1125,7 +1125,7 @@ dependencies = [ [[package]] name = "dashpay-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -1135,7 +1135,7 @@ dependencies = [ [[package]] name = "data-contracts" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "app-connect-contract", "dashpay-contract", @@ -1240,7 +1240,7 @@ dependencies = [ [[package]] name = "document-history-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -1256,7 +1256,7 @@ checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" [[package]] name = "dpns-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -1266,7 +1266,7 @@ dependencies = [ [[package]] name = "dpp" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "anyhow", "async-trait", @@ -1314,7 +1314,7 @@ dependencies = [ [[package]] name = "dpp-json-convertible-derive" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "proc-macro2", "quote", @@ -1323,7 +1323,7 @@ dependencies = [ [[package]] name = "drive" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "byteorder", "derive_more 1.0.0", @@ -1333,6 +1333,7 @@ dependencies = [ "grovedb-bincode", "grovedb-costs", "grovedb-epoch-based-storage-flags", + "grovedb-merk", "grovedb-path", "grovedb-query", "grovedb-version", @@ -1350,7 +1351,7 @@ dependencies = [ [[package]] name = "drive-proof-verifier" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -1791,7 +1792,7 @@ dependencies = [ [[package]] name = "grovedb" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "blake3", "grovedb-bincode", @@ -1834,7 +1835,7 @@ dependencies = [ [[package]] name = "grovedb-bulk-append-tree" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "blake3", "grovedb-bincode", @@ -1851,7 +1852,7 @@ dependencies = [ [[package]] name = "grovedb-costs" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "integer-encoding", "intmap", @@ -1861,7 +1862,7 @@ dependencies = [ [[package]] name = "grovedb-dense-fixed-sized-merkle-tree" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "blake3", "grovedb-bincode", @@ -1874,7 +1875,7 @@ dependencies = [ [[package]] name = "grovedb-element" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "grovedb-bincode", "grovedb-bincode-derive", @@ -1889,7 +1890,7 @@ dependencies = [ [[package]] name = "grovedb-epoch-based-storage-flags" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "grovedb-costs", "hex", @@ -1901,7 +1902,7 @@ dependencies = [ [[package]] name = "grovedb-merk" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "blake3", "byteorder", @@ -1923,7 +1924,7 @@ dependencies = [ [[package]] name = "grovedb-merkle-mountain-range" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "blake3", "grovedb-bincode", @@ -1934,7 +1935,7 @@ dependencies = [ [[package]] name = "grovedb-path" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "hex", ] @@ -1942,7 +1943,7 @@ dependencies = [ [[package]] name = "grovedb-query" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "byteorder", "ed", @@ -1956,7 +1957,7 @@ dependencies = [ [[package]] name = "grovedb-version" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "thiserror 2.0.18", "versioned-feature-core", @@ -1965,7 +1966,7 @@ dependencies = [ [[package]] name = "grovedb-visualize" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "hex", "itertools 0.14.0", @@ -2550,7 +2551,7 @@ dependencies = [ [[package]] name = "key-wallet" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "async-trait", "base58ck", @@ -2572,7 +2573,7 @@ dependencies = [ [[package]] name = "keyword-search-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -2657,7 +2658,7 @@ dependencies = [ [[package]] name = "masternode-reward-shares-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -2715,7 +2716,7 @@ dependencies = [ [[package]] name = "moderation-charters-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -3078,7 +3079,7 @@ dependencies = [ [[package]] name = "platform-encryption" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "aes", "cbc", @@ -3111,6 +3112,7 @@ dependencies = [ "ferment-macro", "hex", "http 0.2.12", + "key-wallet 0.43.0", "lazy_static", "libc", "lru 0.12.5", @@ -3135,7 +3137,7 @@ dependencies = [ [[package]] name = "platform-serialization" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "grovedb-bincode", "platform-version", @@ -3143,7 +3145,7 @@ dependencies = [ [[package]] name = "platform-serialization-derive" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "proc-macro2", "quote", @@ -3153,7 +3155,7 @@ dependencies = [ [[package]] name = "platform-value" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "base64 0.22.1", "bs58", @@ -3174,7 +3176,7 @@ dependencies = [ [[package]] name = "platform-version" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "ferment-macro", "grovedb-bincode", @@ -3186,7 +3188,7 @@ dependencies = [ [[package]] name = "platform-versioning" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "proc-macro2", "quote", @@ -3472,7 +3474,7 @@ dependencies = [ [[package]] name = "rs-dapi-client" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "backon", "chrono", @@ -3859,7 +3861,7 @@ checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2" [[package]] name = "simple-signer" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "async-trait", "base64 0.22.1", @@ -4236,7 +4238,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "token-history-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -4832,7 +4834,7 @@ dependencies = [ [[package]] name = "wallet-utils-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -5242,7 +5244,7 @@ checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" [[package]] name = "withdrawals-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "num_enum 0.5.11", "platform-value", diff --git a/dash-sdk-bindings/Cargo.toml b/dash-sdk-bindings/Cargo.toml index ca8107b7..c2c2b8db 100644 --- a/dash-sdk-bindings/Cargo.toml +++ b/dash-sdk-bindings/Cargo.toml @@ -29,8 +29,8 @@ dashcore = { git = "https://github.com/dashpay/rust-dashcore", features = [ ], default-features = false, rev = "981e97f1015960ae5d277afdabcba1cbbc0b3a63" } [build-dependencies] cbindgen = "0.26.0" -ferment-sys = { git = "https://github.com/dashpay/ferment", tag = "v0.2.3", package = "ferment-sys", features = ["cbindgen_only"] } -#ferment-sys = { git = "https://github.com/dashpay/ferment", tag = "v0.2.3", package = "ferment-sys"} +#ferment-sys = { git = "https://github.com/dashpay/ferment", tag = "v0.2.3", package = "ferment-sys", features = ["cbindgen_only"] } +ferment-sys = { git = "https://github.com/dashpay/ferment", tag = "v0.2.3", package = "ferment-sys"} toml = "0.8.8" [patch.crates-io] diff --git a/dash-sdk-bindings/build.rs b/dash-sdk-bindings/build.rs index 83016b46..aeb60642 100644 --- a/dash-sdk-bindings/build.rs +++ b/dash-sdk-bindings/build.rs @@ -20,4 +20,4 @@ fn main() { Ok(_) => println!("[ferment] [ok]: {SELF_NAME}"), Err(err) => panic!("[ferment] [err]: {}", err) } -} \ No newline at end of file +} diff --git a/dash-sdk-bindings/cbindgen.toml b/dash-sdk-bindings/cbindgen.toml index beb43818..0f774df0 100644 --- a/dash-sdk-bindings/cbindgen.toml +++ b/dash-sdk-bindings/cbindgen.toml @@ -8,14 +8,11 @@ style = "tag" include_guard = "dash_sdk_bindings_h" after_includes = """ #ifndef SWIG -struct dpp_identity_identity_public_key_KeyID; -enum class dpp_identity_identity_public_key_purpose_Purpose; -enum class dpp_identity_identity_public_key_security_level_SecurityLevel; -enum class dpp_identity_identity_public_key_key_type_KeyType; -using KeyID = dpp_identity_identity_public_key_KeyID; -using Purpose = dpp_identity_identity_public_key_purpose_Purpose; -using SecurityLevel = dpp_identity_identity_public_key_security_level_SecurityLevel; -using KeyType = dpp_identity_identity_public_key_key_type_KeyType; +// V1 fields point to native Rust repr(u8) enums, not Ferment's repr(C) enums. +using KeyID = uint32_t; +using Purpose = uint8_t; +using SecurityLevel = uint8_t; +using KeyType = uint8_t; #endif """ diff --git a/dash-sdk-bindings/src/fermented.rs b/dash-sdk-bindings/src/fermented.rs index aebf654e..f4dd43da 100644 --- a/dash-sdk-bindings/src/fermented.rs +++ b/dash-sdk-bindings/src/fermented.rs @@ -1 +1 @@ -# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod platform_value { use crate as dash_sdk_bindings ; pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod macros { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod system_bytes { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod ser { use crate as dash_sdk_bindings ; } pub mod de { use crate as dash_sdk_bindings ; } } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_elements { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } } pub mod token { use crate as dash_sdk_bindings ; } } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_info { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod system_contracts { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod operations { use crate as dash_sdk_bindings ; pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod queue { use crate as dash_sdk_bindings ; pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_restored_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; } } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_groups { use crate as dash_sdk_bindings ; } pub mod for_add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract { use crate as dash_sdk_bindings ; } pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod new { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod traits { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } } pub mod state_transition_types { use crate as dash_sdk_bindings ; } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod consensus { use crate as dash_sdk_bindings ; pub mod state { use crate as dash_sdk_bindings ; pub mod voting { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod basic { use crate as dash_sdk_bindings ; pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } } pub mod non_consensus_error { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod util { use crate as dash_sdk_bindings ; pub mod vec { use crate as dash_sdk_bindings ; } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod convert { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } } pub mod json_schema { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; pub mod default_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod errors { use crate as dash_sdk_bindings ; } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod instant { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod contender { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod distribution_function { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod encode { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; } pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod array { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod config { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; pub mod reason { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod schema { use crate as dash_sdk_bindings ; } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer { use crate as dash_sdk_bindings ; } pub mod safe_integer_map { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod memo { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod unshield { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } } pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod unproved { use crate as dash_sdk_bindings ; } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } } pub mod verify { use crate as dash_sdk_bindings ; } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod core { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod platform { use crate as dash_sdk_bindings ; pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } pub mod readers { use crate as dash_sdk_bindings ; } } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod transition { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; } pub mod builders { use crate as dash_sdk_bindings ; } } pub mod address_sync { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod sync { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file +# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod unproved { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod verify { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod executor { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod transport { use crate as dash_sdk_bindings ; } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod core { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod platform { use crate as dash_sdk_bindings ; pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } pub mod epoch { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } pub mod readers { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } pub mod contest_fund { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; } pub mod builders { use crate as dash_sdk_bindings ; } } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod sync { use crate as dash_sdk_bindings ; } pub mod internal_cache { use crate as dash_sdk_bindings ; } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod shield { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_group_action { use crate as dash_sdk_bindings ; } pub mod add_new_groups { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod queue { use crate as dash_sdk_bindings ; pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } } pub mod structs { use crate as dash_sdk_bindings ; pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_elements { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod moderation { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } } } pub mod dpp { use crate as dash_sdk_bindings ; # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod compile { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } } } pub mod validation_result { use crate as dash_sdk_bindings ; pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod convert { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } } pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod vec { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contender_structs { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod contender { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod votes { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } } } } pub mod document { use crate as dash_sdk_bindings ; pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod serialization_traits { use crate as dash_sdk_bindings ; pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } pub mod deserialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } } pub mod witness { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod state { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod basic { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod action_event { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod group_action { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; } } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod schema { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v3 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod property { use crate as dash_sdk_bindings ; pub mod array { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod string_transformations { use crate as dash_sdk_bindings ; } } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; pub mod time_range { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod outlives_delete { use crate as dash_sdk_bindings ; } } } pub mod config { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod moderation { use crate as dash_sdk_bindings ; pub mod elected { use crate as dash_sdk_bindings ; } pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod reason { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } } pub mod fee { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod emergency_action { use crate as dash_sdk_bindings ; } } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod memo { use crate as dash_sdk_bindings ; } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } } pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer_map { use crate as dash_sdk_bindings ; } pub mod safe_integer { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod instant { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod identity_public_key { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod credits_converter { use crate as dash_sdk_bindings ; } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod traits { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } } pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod pointer { use crate as dash_sdk_bindings ; } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod replace { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod index { use crate as dash_sdk_bindings ; } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod ser { use crate as dash_sdk_bindings ; } pub mod de { use crate as dash_sdk_bindings ; } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod macros { use crate as dash_sdk_bindings ; } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file diff --git a/dash-sdk-java/build.gradle b/dash-sdk-java/build.gradle index 1d382f26..4b54910b 100644 --- a/dash-sdk-java/build.gradle +++ b/dash-sdk-java/build.gradle @@ -24,7 +24,16 @@ cmake { sourceFolder=file("$projectDir/src/main/cpp") } +def macosDeploymentTarget = providers.gradleProperty('macosDeploymentTarget').orElse('14.5').get() + +task buildRustBindings(type: Exec) { + workingDir "${rootProject.projectDir}/dash-sdk-bindings" + environment "MACOSX_DEPLOYMENT_TARGET", macosDeploymentTarget + commandLine 'cargo', 'build' +} + task generateSWIGMetadata(type: Exec) { + dependsOn buildRustBindings workingDir projectDir commandLine 'python3', 'ignore.py' } @@ -73,8 +82,11 @@ sourceSets { } tasks.named('compileJava').configure { dependsOn 'cmakeBuild' } tasks.configureEach { + if (name == 'cmakeConfigure') { + dependsOn buildRustBindings, generateSWIG + } if (name == 'cmakeBuild') { - dependsOn generateSWIG + dependsOn buildRustBindings, generateSWIG } } //compileJava.dependsOn cmakeBuild diff --git a/dash-sdk-java/src/main/cpp/clone.h b/dash-sdk-java/src/main/cpp/clone.h index 49e58d2d..45798e30 100644 --- a/dash-sdk-java/src/main/cpp/clone.h +++ b/dash-sdk-java/src/main/cpp/clone.h @@ -1,56 +1,53 @@ -inline std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey * clone(std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey * object) { - return (object != nullptr) ? platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone(object) : nullptr; -} -inline platform_value_types_identifier_Identifier * clone(platform_value_types_identifier_Identifier * object) { - return (object != nullptr) ? platform_mobile_identity_Identifier_clone(object) : nullptr; +inline platform_value_Value * clone(platform_value_Value * object) { + return (object != nullptr) ? platform_mobile_clone_Value_clone(object) : nullptr; } -inline dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 * clone(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 * object) { - return (object != nullptr) ? platform_mobile_identity_IdentityPublicKeyV0_clone(object) : nullptr; +inline platform_value_types_binary_data_BinaryData * clone(platform_value_types_binary_data_BinaryData * object) { + return (object != nullptr) ? platform_mobile_clone_BinaryData_clone(object) : nullptr; } -inline dpp_identity_identity_public_key_IdentityPublicKey * clone(dpp_identity_identity_public_key_IdentityPublicKey * object) { - return (object != nullptr) ? platform_mobile_identity_IdentityPublicKey_clone(object) : nullptr; +inline drive_proof_verifier_types_ContestedResource * clone(drive_proof_verifier_types_ContestedResource * object) { + return (object != nullptr) ? platform_mobile_clone_ContestedResource_clone(object) : nullptr; } -inline dpp_identity_identity_Identity * clone(dpp_identity_identity_Identity * object) { - return (object != nullptr) ? platform_mobile_identity_Identity_clone(object) : nullptr; +inline drive_query_conditions_WhereClause * clone(drive_query_conditions_WhereClause * object) { + return (object != nullptr) ? platform_mobile_clone_WhereClause_clone(object) : nullptr; } -inline dpp_identity_v0_IdentityV0 * clone(dpp_identity_v0_IdentityV0 * object) { - return (object != nullptr) ? platform_mobile_identity_IdentityV0_clone(object) : nullptr; +inline dpp_identity_identity_public_key_KeyID * clone(dpp_identity_identity_public_key_KeyID * object) { + return (object != nullptr) ? platform_mobile_clone_KeyID_clone(object) : nullptr; } -inline platform_mobile_data_contracts_DataContractFFI * clone(platform_mobile_data_contracts_DataContractFFI * object) { - return (object != nullptr) ? platform_mobile_data_contracts_DataContractFFI_clone(object) : nullptr; +inline dpp_identity_identity_public_key_contract_bounds_ContractBounds * clone(dpp_identity_identity_public_key_contract_bounds_ContractBounds * object) { + return (object != nullptr) ? platform_mobile_clone_ContractBounds_clone(object) : nullptr; } -inline platform_mobile_put_InstantAssetLockProofFFI * clone(platform_mobile_put_InstantAssetLockProofFFI * object) { - return (object != nullptr) ? platform_mobile_put_InstantAssetLockProofFFI_clone(object) : nullptr; +inline platform_value_Hash256 * clone(platform_value_Hash256 * object) { + return (object != nullptr) ? platform_mobile_clone_Hash256_clone(object) : nullptr; } -inline platform_mobile_put_ChainAssetLockProofFFI * clone(platform_mobile_put_ChainAssetLockProofFFI * object) { - return (object != nullptr) ? platform_mobile_put_ChainAssetLockProofFFI_clone(object) : nullptr; +inline drive_query_ordering_OrderClause * clone(drive_query_ordering_OrderClause * object) { + return (object != nullptr) ? platform_mobile_clone_OrderClause_clone(object) : nullptr; } -inline OutPoint * clone(OutPoint * object) { - return (object != nullptr) ? platform_mobile_put_OutPointFFI_clone(object) : nullptr; +inline platform_mobile_state_transition_StateTransitionInfo * clone(platform_mobile_state_transition_StateTransitionInfo * object) { + return (object != nullptr) ? platform_mobile_clone_StateTransitionInfo_clone(object) : nullptr; } -inline dpp_prelude_CoreBlockHeight * clone(dpp_prelude_CoreBlockHeight * object) { - return (object != nullptr) ? platform_mobile_clone_CoreBlockHeight_clone(object) : nullptr; +inline dpp_identity_identity_public_key_TimestampMillis * clone(dpp_identity_identity_public_key_TimestampMillis * object) { + return (object != nullptr) ? platform_mobile_clone_TimestampMillis_clone(object) : nullptr; } -inline drive_proof_verifier_types_ContestedResources * clone(drive_proof_verifier_types_ContestedResources * object) { - return (object != nullptr) ? platform_mobile_clone_ContestedResources_clone(object) : nullptr; +inline std_collections_Map_keys_String_values_platform_value_Value * clone(std_collections_Map_keys_String_values_platform_value_Value * object) { + return (object != nullptr) ? platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone(object) : nullptr; } -inline dpp_voting_contender_structs_contender_ContenderWithSerializedDocument * clone(dpp_voting_contender_structs_contender_ContenderWithSerializedDocument * object) { - return (object != nullptr) ? platform_mobile_clone_ContenderWithSerializedDocument_clone(object) : nullptr; +inline Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll * clone(Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll * object) { + return (object != nullptr) ? platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone(object) : nullptr; } -inline platform_value_Value * clone(platform_value_Value * object) { - return (object != nullptr) ? platform_mobile_clone_Value_clone(object) : nullptr; +inline dpp_voting_votes_resource_vote_v0_ResourceVoteV0 * clone(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 * object) { + return (object != nullptr) ? platform_mobile_clone_ResourceVoteV0_clone(object) : nullptr; } -inline drive_proof_verifier_types_Voter * clone(drive_proof_verifier_types_Voter * object) { - return (object != nullptr) ? platform_mobile_clone_Voter_clone(object) : nullptr; +inline dpp_balances_credits_Credits * clone(dpp_balances_credits_Credits * object) { + return (object != nullptr) ? platform_mobile_clone_Credits_clone(object) : nullptr; } -inline platform_value_value_map_ValueMap * clone(platform_value_value_map_ValueMap * object) { - return (object != nullptr) ? platform_mobile_clone_ValueMap_clone(object) : nullptr; +inline drive_proof_verifier_types_ContestedResources * clone(drive_proof_verifier_types_ContestedResources * object) { + return (object != nullptr) ? platform_mobile_clone_ContestedResources_clone(object) : nullptr; } -inline Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll * clone(Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll * object) { - return (object != nullptr) ? platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone(object) : nullptr; +inline drive_proof_verifier_types_Contenders * clone(drive_proof_verifier_types_Contenders * object) { + return (object != nullptr) ? platform_mobile_clone_Contenders_clone(object) : nullptr; } -inline platform_value_types_binary_data_BinaryData * clone(platform_value_types_binary_data_BinaryData * object) { - return (object != nullptr) ? platform_mobile_clone_BinaryData_clone(object) : nullptr; +inline dpp_prelude_TimestampMillis * clone(dpp_prelude_TimestampMillis * object) { + return (object != nullptr) ? platform_mobile_clone_prelude_TimestampMillis_clone(object) : nullptr; } inline Arr_u8_20 * clone(Arr_u8_20 * object) { return (object != nullptr) ? platform_mobile_clone_Arr_u8_20_clone(object) : nullptr; @@ -58,99 +55,105 @@ inline Arr_u8_20 * clone(Arr_u8_20 * object) { inline dpp_document_Document * clone(dpp_document_Document * object) { return (object != nullptr) ? platform_mobile_clone_Document_clone(object) : nullptr; } -inline Vec_u8 * clone(Vec_u8 * object) { - return (object != nullptr) ? platform_mobile_clone_Vec_u8_clone(object) : nullptr; +inline Arr_u8_36 * clone(Arr_u8_36 * object) { + return (object != nullptr) ? platform_mobile_clone_Arr_u8_36_clone(object) : nullptr; } -inline platform_value_Hash256 * clone(platform_value_Hash256 * object) { - return (object != nullptr) ? platform_mobile_clone_Hash256_clone(object) : nullptr; +inline dpp_voting_votes_resource_vote_ResourceVote * clone(dpp_voting_votes_resource_vote_ResourceVote * object) { + return (object != nullptr) ? platform_mobile_clone_ResourceVote_clone(object) : nullptr; } -inline drive_proof_verifier_types_VotePollsGroupedByTimestamp * clone(drive_proof_verifier_types_VotePollsGroupedByTimestamp * object) { - return (object != nullptr) ? platform_mobile_clone_VotePollsGroupedByTimestamp_clone(object) : nullptr; +inline dpp_prelude_BlockHeight * clone(dpp_prelude_BlockHeight * object) { + return (object != nullptr) ? platform_mobile_clone_BlockHeight_clone(object) : nullptr; +} +inline platform_value_value_map_ValueMap * clone(platform_value_value_map_ValueMap * object) { + return (object != nullptr) ? platform_mobile_clone_ValueMap_clone(object) : nullptr; +} +inline dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 * clone(dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 * object) { + return (object != nullptr) ? platform_mobile_clone_IdentityPublicKeyV1_clone(object) : nullptr; } inline Vec_platform_value_Value * clone(Vec_platform_value_Value * object) { return (object != nullptr) ? platform_mobile_clone_Vec_Value_clone(object) : nullptr; } -inline Arr_u8_32 * clone(Arr_u8_32 * object) { - return (object != nullptr) ? platform_mobile_clone_Arr_u8_32_clone(object) : nullptr; -} inline dpp_prelude_Revision * clone(dpp_prelude_Revision * object) { return (object != nullptr) ? platform_mobile_clone_Revision_clone(object) : nullptr; } +inline platform_mobile_fetch_identity_IdentityKeyRemainingBudget * clone(platform_mobile_fetch_identity_IdentityKeyRemainingBudget * object) { + return (object != nullptr) ? platform_mobile_clone_IdentityKeyRemainingBudget_clone(object) : nullptr; +} inline dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll * clone(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll * object) { return (object != nullptr) ? platform_mobile_clone_ContestedDocumentResourceVotePoll_clone(object) : nullptr; } -inline dpp_identity_identity_public_key_KeyID * clone(dpp_identity_identity_public_key_KeyID * object) { - return (object != nullptr) ? platform_mobile_clone_KeyID_clone(object) : nullptr; -} -inline drive_query_conditions_WhereOperator * clone(drive_query_conditions_WhereOperator * object) { - return (object != nullptr) ? platform_mobile_clone_WhereOperator_clone(object) : nullptr; -} -inline dpp_balances_credits_Credits * clone(dpp_balances_credits_Credits * object) { - return (object != nullptr) ? platform_mobile_clone_Credits_clone(object) : nullptr; +inline drive_proof_verifier_types_Voters * clone(drive_proof_verifier_types_Voters * object) { + return (object != nullptr) ? platform_mobile_clone_Voters_clone(object) : nullptr; } -inline Arr_u8_36 * clone(Arr_u8_36 * object) { - return (object != nullptr) ? platform_mobile_clone_Arr_u8_36_clone(object) : nullptr; +inline Vec_u8 * clone(Vec_u8 * object) { + return (object != nullptr) ? platform_mobile_clone_Vec_u8_clone(object) : nullptr; } -inline dpp_prelude_BlockHeight * clone(dpp_prelude_BlockHeight * object) { - return (object != nullptr) ? platform_mobile_clone_BlockHeight_clone(object) : nullptr; +inline drive_proof_verifier_types_Voter * clone(drive_proof_verifier_types_Voter * object) { + return (object != nullptr) ? platform_mobile_clone_Voter_clone(object) : nullptr; } -inline drive_proof_verifier_types_ContestedResource * clone(drive_proof_verifier_types_ContestedResource * object) { - return (object != nullptr) ? platform_mobile_clone_ContestedResource_clone(object) : nullptr; +inline std_collections_BTreeSet_drive_proof_verifier_types_Voter * clone(std_collections_BTreeSet_drive_proof_verifier_types_Voter * object) { + return (object != nullptr) ? platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone(object) : nullptr; } -inline drive_query_ordering_OrderClause * clone(drive_query_ordering_OrderClause * object) { - return (object != nullptr) ? platform_mobile_clone_OrderClause_clone(object) : nullptr; +inline dpp_prelude_CoreBlockHeight * clone(dpp_prelude_CoreBlockHeight * object) { + return (object != nullptr) ? platform_mobile_clone_CoreBlockHeight_clone(object) : nullptr; } -inline dpp_prelude_TimestampMillis * clone(dpp_prelude_TimestampMillis * object) { - return (object != nullptr) ? platform_mobile_clone_prelude_TimestampMillis_clone(object) : nullptr; +inline dpp_voting_contender_structs_contender_ContenderWithSerializedDocument * clone(dpp_voting_contender_structs_contender_ContenderWithSerializedDocument * object) { + return (object != nullptr) ? platform_mobile_clone_ContenderWithSerializedDocument_clone(object) : nullptr; } inline dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 * clone(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 * object) { return (object != nullptr) ? platform_mobile_clone_ContenderWithSerializedDocumentV0_clone(object) : nullptr; } -inline dpp_voting_votes_resource_vote_ResourceVote * clone(dpp_voting_votes_resource_vote_ResourceVote * object) { - return (object != nullptr) ? platform_mobile_clone_ResourceVote_clone(object) : nullptr; -} inline dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice * clone(dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice * object) { return (object != nullptr) ? platform_mobile_clone_ResourceVoteChoice_clone(object) : nullptr; } inline dpp_voting_votes_Vote * clone(dpp_voting_votes_Vote * object) { return (object != nullptr) ? platform_mobile_clone_Vote_clone(object) : nullptr; } -inline drive_proof_verifier_types_Contenders * clone(drive_proof_verifier_types_Contenders * object) { - return (object != nullptr) ? platform_mobile_clone_Contenders_clone(object) : nullptr; -} -inline dpp_identity_identity_public_key_contract_bounds_ContractBounds * clone(dpp_identity_identity_public_key_contract_bounds_ContractBounds * object) { - return (object != nullptr) ? platform_mobile_clone_ContractBounds_clone(object) : nullptr; -} -inline drive_query_conditions_WhereClause * clone(drive_query_conditions_WhereClause * object) { - return (object != nullptr) ? platform_mobile_clone_WhereClause_clone(object) : nullptr; +inline dpp_document_v0_DocumentV0 * clone(dpp_document_v0_DocumentV0 * object) { + return (object != nullptr) ? platform_mobile_clone_DocumentV0_clone(object) : nullptr; } inline drive_proof_verifier_types_ResourceVotesByIdentity * clone(drive_proof_verifier_types_ResourceVotesByIdentity * object) { return (object != nullptr) ? platform_mobile_clone_ResourceVotesByIdentity_clone(object) : nullptr; } -inline dpp_identity_identity_public_key_TimestampMillis * clone(dpp_identity_identity_public_key_TimestampMillis * object) { - return (object != nullptr) ? platform_mobile_clone_TimestampMillis_clone(object) : nullptr; +inline Arr_u8_32 * clone(Arr_u8_32 * object) { + return (object != nullptr) ? platform_mobile_clone_Arr_u8_32_clone(object) : nullptr; } inline dpp_voting_vote_polls_VotePoll * clone(dpp_voting_vote_polls_VotePoll * object) { return (object != nullptr) ? platform_mobile_clone_VotePoll_clone(object) : nullptr; } -inline dpp_document_v0_DocumentV0 * clone(dpp_document_v0_DocumentV0 * object) { - return (object != nullptr) ? platform_mobile_clone_DocumentV0_clone(object) : nullptr; +inline drive_query_conditions_WhereOperator * clone(drive_query_conditions_WhereOperator * object) { + return (object != nullptr) ? platform_mobile_clone_WhereOperator_clone(object) : nullptr; } -inline platform_mobile_state_transition_StateTransitionInfo * clone(platform_mobile_state_transition_StateTransitionInfo * object) { - return (object != nullptr) ? platform_mobile_clone_StateTransitionInfo_clone(object) : nullptr; +inline drive_proof_verifier_types_VotePollsGroupedByTimestamp * clone(drive_proof_verifier_types_VotePollsGroupedByTimestamp * object) { + return (object != nullptr) ? platform_mobile_clone_VotePollsGroupedByTimestamp_clone(object) : nullptr; } -inline dpp_voting_votes_resource_vote_v0_ResourceVoteV0 * clone(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 * object) { - return (object != nullptr) ? platform_mobile_clone_ResourceVoteV0_clone(object) : nullptr; +inline OutPoint * clone(OutPoint * object) { + return (object != nullptr) ? platform_mobile_put_OutPointFFI_clone(object) : nullptr; } -inline drive_proof_verifier_types_Voters * clone(drive_proof_verifier_types_Voters * object) { - return (object != nullptr) ? platform_mobile_clone_Voters_clone(object) : nullptr; +inline platform_mobile_put_InstantAssetLockProofFFI * clone(platform_mobile_put_InstantAssetLockProofFFI * object) { + return (object != nullptr) ? platform_mobile_put_InstantAssetLockProofFFI_clone(object) : nullptr; } -inline dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 * clone(dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 * object) { - return (object != nullptr) ? platform_mobile_clone_IdentityPublicKeyV1_clone(object) : nullptr; +inline platform_mobile_put_ChainAssetLockProofFFI * clone(platform_mobile_put_ChainAssetLockProofFFI * object) { + return (object != nullptr) ? platform_mobile_put_ChainAssetLockProofFFI_clone(object) : nullptr; } -inline std_collections_Map_keys_String_values_platform_value_Value * clone(std_collections_Map_keys_String_values_platform_value_Value * object) { - return (object != nullptr) ? platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone(object) : nullptr; +inline dpp_identity_identity_public_key_IdentityPublicKey * clone(dpp_identity_identity_public_key_IdentityPublicKey * object) { + return (object != nullptr) ? platform_mobile_identity_IdentityPublicKey_clone(object) : nullptr; } -inline std_collections_BTreeSet_drive_proof_verifier_types_Voter * clone(std_collections_BTreeSet_drive_proof_verifier_types_Voter * object) { - return (object != nullptr) ? platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone(object) : nullptr; +inline std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey * clone(std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey * object) { + return (object != nullptr) ? platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone(object) : nullptr; +} +inline dpp_identity_v0_IdentityV0 * clone(dpp_identity_v0_IdentityV0 * object) { + return (object != nullptr) ? platform_mobile_identity_IdentityV0_clone(object) : nullptr; +} +inline dpp_identity_identity_Identity * clone(dpp_identity_identity_Identity * object) { + return (object != nullptr) ? platform_mobile_identity_Identity_clone(object) : nullptr; +} +inline platform_value_types_identifier_Identifier * clone(platform_value_types_identifier_Identifier * object) { + return (object != nullptr) ? platform_mobile_identity_Identifier_clone(object) : nullptr; +} +inline dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 * clone(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 * object) { + return (object != nullptr) ? platform_mobile_identity_IdentityPublicKeyV0_clone(object) : nullptr; +} +inline platform_mobile_data_contracts_DataContractFFI * clone(platform_mobile_data_contracts_DataContractFFI * object) { + return (object != nullptr) ? platform_mobile_data_contracts_DataContractFFI_clone(object) : nullptr; } diff --git a/dash-sdk-java/src/main/cpp/dpp.h b/dash-sdk-java/src/main/cpp/dpp.h index 6ff74ffa..f1afc3ed 100644 --- a/dash-sdk-java/src/main/cpp/dpp.h +++ b/dash-sdk-java/src/main/cpp/dpp.h @@ -95,9 +95,9 @@ class MemoryFactory { uint8_t * cloneString(const char * str, uint32_t len) { if (str != nullptr) { - uint8_t * strClone = reinterpret_cast(alloc(len)); + uint8_t * strClone = reinterpret_cast(alloc(static_cast(len) + 1)); memcpy(strClone, str, len); - strClone[len - 1] = 0; + strClone[len] = 0; return strClone; } return nullptr; @@ -216,4 +216,4 @@ static dpp_identity_identity_public_key_contract_bounds_ContractBounds * singleC return dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor(idCopy, typeCopy); } -#endif // this file \ No newline at end of file +#endif // this file diff --git a/dash-sdk-java/src/main/cpp/identity_public_key_v1.h b/dash-sdk-java/src/main/cpp/identity_public_key_v1.h new file mode 100644 index 00000000..ce34a14d --- /dev/null +++ b/dash-sdk-java/src/main/cpp/identity_public_key_v1.h @@ -0,0 +1,27 @@ +#ifndef SDK_IDENTITY_PUBLIC_KEY_V1_H +#define SDK_IDENTITY_PUBLIC_KEY_V1_H + +struct platform_value_Value; +#include "../../../../dash-sdk-bindings/target/include/dash_sdk_bindings.h" + +static_assert(sizeof(KeyID) == 4, "Native Rust KeyID must be u32"); +static_assert(sizeof(Purpose) == 1, "Native Rust Purpose must be u8"); +static_assert(sizeof(SecurityLevel) == 1, "Native Rust SecurityLevel must be u8"); +static_assert(sizeof(KeyType) == 1, "Native Rust KeyType must be u8"); + +inline dpp_identity_identity_public_key_purpose_Purpose identityPublicKeyV1Purpose( + const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 *key) { + return static_cast(*key->purpose); +} + +inline dpp_identity_identity_public_key_security_level_SecurityLevel identityPublicKeyV1SecurityLevel( + const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 *key) { + return static_cast(*key->security_level); +} + +inline dpp_identity_identity_public_key_key_type_KeyType identityPublicKeyV1KeyType( + const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 *key) { + return static_cast(*key->key_type); +} + +#endif diff --git a/dash-sdk-java/src/main/swig/app_connect.i b/dash-sdk-java/src/main/swig/app_connect.i new file mode 100644 index 00000000..ce589751 --- /dev/null +++ b/dash-sdk-java/src/main/swig/app_connect.i @@ -0,0 +1,3 @@ +%rename(fetchContractGroupOwnerWithSdk) platform_mobile_app_connect_fetch_contract_group_owner_with_sdk; +%rename(fetchPlatformTimeWithSdk) platform_mobile_app_connect_fetch_platform_time_with_sdk; +%rename(deleteDocumentSdk) platform_mobile_app_connect_delete_document_sdk; diff --git a/dash-sdk-java/src/main/swig/contract_bounds.i b/dash-sdk-java/src/main/swig/contract_bounds.i index e3cd2db4..ff1caa8d 100644 --- a/dash-sdk-java/src/main/swig/contract_bounds.i +++ b/dash-sdk-java/src/main/swig/contract_bounds.i @@ -3,6 +3,7 @@ %rename (SingleContract) dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract; %rename (SingleContractDocumentType) dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType; +%newobject dpp_identity_identity_public_key_contract_bounds_ContractBounds::forContractGroup; %extend dpp_identity_identity_public_key_contract_bounds_ContractBounds { dpp_identity_identity_public_key_contract_bounds_ContractBounds(platform_value_types_identifier_Identifier * id) { dpp_identity_identity_public_key_contract_bounds_ContractBounds * cb = dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor(platform_mobile_identity_Identifier_clone(id)); @@ -11,6 +12,9 @@ dpp_identity_identity_public_key_contract_bounds_ContractBounds(platform_value_types_identifier_Identifier * id, char * document_type) { return dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor(platform_mobile_identity_Identifier_clone(id), memoryFactory.clone(document_type)); } + static dpp_identity_identity_public_key_contract_bounds_ContractBounds * forContractGroup(platform_value_types_identifier_Identifier * id) { + return dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor(platform_mobile_identity_Identifier_clone(id)); + } ~dpp_identity_identity_public_key_contract_bounds_ContractBounds() { dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy($self); } diff --git a/dash-sdk-java/src/main/swig/credits.i b/dash-sdk-java/src/main/swig/credits.i new file mode 100644 index 00000000..61c6798b --- /dev/null +++ b/dash-sdk-java/src/main/swig/credits.i @@ -0,0 +1,25 @@ +%ignore dpp_balances_credits_Credits::_0; +%rename(Credits) dpp_balances_credits_Credits; +%newobject dpp_balances_credits_Credits::fromBigInteger; +%extend dpp_balances_credits_Credits { + dpp_balances_credits_Credits(long long value) { + return dpp_balances_credits_Credits_ctor(value); + } + ~dpp_balances_credits_Credits() { + dpp_balances_credits_Credits_destroy($self); + } + long long toLong() { + return $self->_0; + } + static dpp_balances_credits_Credits * fromBigInteger(uint64_t value) { + return dpp_balances_credits_Credits_ctor(value); + } + uint64_t toBigInteger() { + return $self->_0; + } + bool objectEquals(dpp_balances_credits_Credits* other) { + if ($self == other) return true; + if ($self == nullptr || other == nullptr) return false; + return $self->_0 == other->_0; + } +} diff --git a/dash-sdk-java/src/main/swig/document.i b/dash-sdk-java/src/main/swig/document.i index 6cb3158d..868eb8bb 100644 --- a/dash-sdk-java/src/main/swig/document.i +++ b/dash-sdk-java/src/main/swig/document.i @@ -54,6 +54,8 @@ START_CLASS(DocumentV0, dpp_document_v0_DocumentV0); clone(updated_at_core_block_height), clone(transferred_at_core_block_height), nullptr, + nullptr, + nullptr, nullptr ); } @@ -78,6 +80,8 @@ START_CLASS(DocumentV0, dpp_document_v0_DocumentV0); nullptr, nullptr, nullptr, + nullptr, + nullptr, nullptr ); } diff --git a/dash-sdk-java/src/main/swig/generics/result.i b/dash-sdk-java/src/main/swig/generics/result.i index db07382e..8d59cfe7 100644 --- a/dash-sdk-java/src/main/swig/generics/result.i +++ b/dash-sdk-java/src/main/swig/generics/result.i @@ -284,6 +284,7 @@ DEFINE_RESULT(Identity, String, Result_ok_dpp_identity_identity_Identity_err_String, platform_mobile_identity_Identity_clone); DEFINE_OPTIONAL_RESULT(Identity, String, Result_ok_Option_dpp_identity_identity_Identity_err_String, platform_mobile_identity_Identity_clone); DEFINE_RESULT(Document, String, Result_ok_dpp_document_Document_err_String, clone); +DEFINE_OPTIONAL_RESULT(Identifier, String, Result_ok_Option_platform_value_types_identifier_Identifier_err_String, platform_mobile_identity_Identifier_clone); DEFINE_RESULT(DataContract, String, Result_ok_platform_mobile_data_contracts_DataContractFFI_err_String, clone); DEFINE_OPTIONAL_RESULT(DataContract, String, Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String, clone); @@ -294,5 +295,7 @@ DEFINE_LIST_RESULT(Document, String, Result_ok_Vec_dpp_document_Document_err_Str DEFINE_RESULT(VotePollsGroupedByTimeStamp, String, Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String, clone); DEFINE_RESULT(ResourceVotesByIdentity, String, Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String, clone); +DEFINE_RESULT(IdentityKeyRemainingBudget, String, Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String, clone); +DEFINE_LIST_RESULT(IdentityKeyRemainingBudget, String, Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String, platform_mobile_fetch_identity_IdentityKeyRemainingBudget); // primitive types -DEFINE_PRIMITIVE_RESULT(Long, String, Result_ok_u64_err_String); \ No newline at end of file +DEFINE_PRIMITIVE_RESULT(Long, String, Result_ok_u64_err_String); diff --git a/dash-sdk-java/src/main/swig/identity.i b/dash-sdk-java/src/main/swig/identity.i index 0d66c170..5d28bf5a 100644 --- a/dash-sdk-java/src/main/swig/identity.i +++ b/dash-sdk-java/src/main/swig/identity.i @@ -59,6 +59,7 @@ } } %rename(Identity) dpp_identity_identity_Identity; +%rename(IdentityKeyRemainingBudget) platform_mobile_fetch_identity_IdentityKeyRemainingBudget; %newobject platform_mobile_identity_get_identity2(platform_value_types_identifier_Identifier *); %newobject platform_mobile_identity_get_an_identity(void); @@ -77,6 +78,7 @@ %rename (getIdentityContractBounds) platform_mobile_identity_get_identity_contract_bounds(platform_value_types_identifier_Identifier *identifier, platform_value_types_identifier_Identifier *contract_identifier); %rename (getIdentity2) platform_mobile_identity_get_identity2(platform_value_types_identifier_Identifier *); %rename (getIdentityByPublicKeyHash) platform_mobile_fetch_identity_fetch_identity_with_keyhash(Arr_u8_20 *key_hash, uint64_t quorum_public_key_callback, uint64_t data_contract_callback); +%rename (fetchIdentityKeyRemainingBudgetWithSdk) platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk(DashSdk *rust_sdk, platform_value_types_identifier_Identifier *identifier, uint32_t key_id); %ignore platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone(std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey *public_keys); struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey; @@ -116,4 +118,4 @@ MAP_STRUCT_TYPEMAP( Vec_dpp_identity_identity_public_key_KeyID *disable_public_keys, uintptr_t signer_context, uint64_t signer_callback -); \ No newline at end of file +); diff --git a/dash-sdk-java/src/main/swig/identity_public_key.i b/dash-sdk-java/src/main/swig/identity_public_key.i index 7c032d3b..dd38b0fe 100644 --- a/dash-sdk-java/src/main/swig/identity_public_key.i +++ b/dash-sdk-java/src/main/swig/identity_public_key.i @@ -4,6 +4,7 @@ %ignore dpp_identity_identity_public_key_v1_IdentityPublicKeyV1::key_type; %ignore dpp_identity_identity_public_key_v1_IdentityPublicKeyV1::purpose; %ignore dpp_identity_identity_public_key_v1_IdentityPublicKeyV1::security_level; +%ignore dpp_identity_identity_public_key_v1_IdentityPublicKeyV1::id; %rename(IdentityPublicKeyV0) dpp_identity_identity_public_key_v0_IdentityPublicKeyV0; %extend dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { dpp_identity_identity_public_key_v0_IdentityPublicKeyV0(dpp_identity_identity_public_key_KeyID * keyId, @@ -25,15 +26,7 @@ printf(" ->data(%lx)\n", (long)binaryData); printf(" ->data->_0(%lx)\n", (long)binaryData->_0); printf(" ->data->_0->values(%lx)\n", (long)binaryData->_0->values); - dpp_identity_identity_public_key_contract_bounds_ContractBounds * contract_bounds_copy = nullptr; - if (contract_bounds != nullptr) { - if (contract_bounds->tag == dpp_identity_identity_public_key_contract_bounds_ContractBounds::Tag::SingleContract) { - contract_bounds_copy = dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor(platform_mobile_identity_Identifier_clone(contract_bounds->single_contract.id)); - } else if (contract_bounds->tag == dpp_identity_identity_public_key_contract_bounds_ContractBounds::Tag::SingleContractDocumentType) { - char * typeCopy = memoryFactory.clone(contract_bounds->single_contract_document_type.document_type_name); - contract_bounds_copy = dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor(platform_mobile_identity_Identifier_clone(contract_bounds->single_contract_document_type.id), typeCopy); - } - } + dpp_identity_identity_public_key_contract_bounds_ContractBounds * contract_bounds_copy = clone(contract_bounds); //printf(" ->contract_bounds(%lx): %d\n", (long)contract_bounds, contract_bounds != nullptr ? contract_bounds->tag : -1); printf(" ->contract_bounds_copy(%lx)\n", (long)contract_bounds_copy); dpp_identity_identity_public_key_KeyID * keyIdObject = dpp_identity_identity_public_key_KeyID_ctor(keyId->_0); @@ -64,7 +57,11 @@ } %rename(IdentityPublicKeyV1) dpp_identity_identity_public_key_v1_IdentityPublicKeyV1; +%newobject dpp_identity_identity_public_key_v1_IdentityPublicKeyV1::getId; %extend dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { + dpp_identity_identity_public_key_KeyID * getId() { + return dpp_identity_identity_public_key_KeyID_ctor(*$self->id); + } dpp_identity_identity_public_key_v1_IdentityPublicKeyV1( dpp_identity_identity_public_key_KeyID * keyId, dpp_identity_identity_public_key_purpose_Purpose purpose, @@ -76,35 +73,36 @@ dpp_identity_identity_public_key_TimestampMillis * disabled_at, dpp_balances_credits_Credits * total_budget, dpp_identity_identity_public_key_TimestampMillis * expires_at) { - dpp_identity_identity_public_key_purpose_Purpose * purposeObject = intToPurpose(purpose); - dpp_identity_identity_public_key_key_type_KeyType * keyTypeObject = intToKeyType(key_type); - dpp_identity_identity_public_key_security_level_SecurityLevel * securityLevelObject = intToSecurityLevel(securityLevel); - dpp_identity_identity_public_key_KeyID * keyIdObject = dpp_identity_identity_public_key_KeyID_ctor(keyId->_0); - - return dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor( - keyIdObject, - purposeObject, - securityLevelObject, - clone(contract_bounds), - keyTypeObject, + uint32_t idValue = keyId->_0; + uint8_t purposeValue = static_cast(purpose); + uint8_t securityLevelValue = static_cast(securityLevel); + uint8_t keyTypeValue = static_cast(key_type); + // Clone through Rust so raw Rust enums receive correctly sized Rust allocations. + dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 view { + &idValue, + &purposeValue, + &securityLevelValue, + contract_bounds, + &keyTypeValue, read_only, - clone(data), - clone(disabled_at), - clone(total_budget), - clone(expires_at) - ); + data, + disabled_at, + total_budget, + expires_at + }; + return clone(&view); } ~dpp_identity_identity_public_key_v1_IdentityPublicKeyV1() { dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy($self); } enum dpp_identity_identity_public_key_key_type_KeyType getKeyType() { - return *$self->key_type; + return identityPublicKeyV1KeyType($self); } enum dpp_identity_identity_public_key_purpose_Purpose getPurpose() { - return *$self->purpose; + return identityPublicKeyV1Purpose($self); } enum dpp_identity_identity_public_key_security_level_SecurityLevel getSecurityLevel() { - return *$self->security_level; + return identityPublicKeyV1SecurityLevel($self); } } diff --git a/dash-sdk-java/src/main/swig/ignore.i b/dash-sdk-java/src/main/swig/ignore.i index 69c824a6..45d2e2e8 100644 --- a/dash-sdk-java/src/main/swig/ignore.i +++ b/dash-sdk-java/src/main/swig/ignore.i @@ -1,135 +1,90 @@ -%ignore dash_sdk_platform_types_identity_PublicKeyHash_ctor(Arr_u8_20 *o_0); -%ignore dash_sdk_platform_types_identity_PublicKeyHash_destroy(dash_sdk_platform_types_identity_PublicKeyHash *ffi); -%ignore platform_value_Value_U128_ctor(uint8_t); -%ignore platform_value_Value_I128_ctor(uint8_t); -%ignore platform_value_Value_U64_ctor(uint64_t o_o_0); -%ignore platform_value_Value_I64_ctor(int64_t o_o_0); -%ignore platform_value_Value_U32_ctor(uint32_t o_o_0); -%ignore platform_value_Value_I32_ctor(int32_t o_o_0); -%ignore platform_value_Value_U16_ctor(uint16_t o_o_0); -%ignore platform_value_Value_I16_ctor(int16_t o_o_0); -%ignore platform_value_Value_U8_ctor(uint8_t o_o_0); -%ignore platform_value_Value_I8_ctor(int8_t o_o_0); -%ignore platform_value_Value_Bytes_ctor(Vec_u8 *o_o_0); -%ignore platform_value_Value_Bytes20_ctor(Arr_u8_20 *o_o_0); -%ignore platform_value_Value_Bytes32_ctor(Arr_u8_32 *o_o_0); -%ignore platform_value_Value_Bytes36_ctor(Arr_u8_36 *o_o_0); -%ignore platform_value_Value_EnumU8_ctor(Vec_u8 *o_o_0); -%ignore platform_value_Value_EnumString_ctor(Vec_String *o_o_0); -%ignore platform_value_Value_Identifier_ctor(platform_value_Hash256 *o_o_0); -%ignore platform_value_Value_Float_ctor(double o_o_0); -%ignore platform_value_Value_Text_ctor(char *o_o_0); -%ignore platform_value_Value_Bool_ctor(bool o_o_0); -%ignore platform_value_Value_Null_ctor(); -%ignore platform_value_Value_Array_ctor(Vec_platform_value_Value *o_o_0); -%ignore platform_value_Value_Map_ctor(platform_value_value_map_ValueMap *o_o_0); -%ignore platform_value_Value_destroy(platform_value_Value *ffi); -%ignore platform_value_Hash256_ctor(Arr_u8_32 *o_0); -%ignore platform_value_Hash256_destroy(platform_value_Hash256 *ffi); -%ignore platform_value_error_Error_Unsupported_ctor(char *o_o_0); -%ignore platform_value_error_Error_StructureError_ctor(char *o_o_0); -%ignore platform_value_error_Error_PathError_ctor(char *o_o_0); -%ignore platform_value_error_Error_IntegerSizeError_ctor(); -%ignore platform_value_error_Error_IntegerParsingError_ctor(); -%ignore platform_value_error_Error_StringDecodingError_ctor(char *o_o_0); -%ignore platform_value_error_Error_KeyMustBeAString_ctor(); -%ignore platform_value_error_Error_ByteLengthNot20BytesError_ctor(char *o_o_0); -%ignore platform_value_error_Error_ByteLengthNot32BytesError_ctor(char *o_o_0); -%ignore platform_value_error_Error_ByteLengthNot36BytesError_ctor(char *o_o_0); -%ignore platform_value_error_Error_SerdeSerializationError_ctor(char *o_o_0); -%ignore platform_value_error_Error_SerdeDeserializationError_ctor(char *o_o_0); -%ignore platform_value_error_Error_CborSerializationError_ctor(char *o_o_0); -%ignore platform_value_error_Error_destroy(platform_value_error_Error *ffi); -%ignore platform_value_value_map_ValueMap_ctor(Vec_Tuple_platform_value_Value_platform_value_Value *o_0); -%ignore platform_value_value_map_ValueMap_destroy(platform_value_value_map_ValueMap *ffi); -%ignore platform_value_types_binary_data_BinaryData_ctor(Vec_u8 *o_0); -%ignore platform_value_types_binary_data_BinaryData_destroy(platform_value_types_binary_data_BinaryData *ffi); -%ignore platform_value_types_identifier_Identifier_ctor(platform_value_types_identifier_IdentifierBytes32 *o_0); -%ignore platform_value_types_identifier_Identifier_destroy(platform_value_types_identifier_Identifier *ffi); -%ignore platform_value_types_identifier_IdentifierBytes32_ctor(Arr_u8_32 *o_0); -%ignore platform_value_types_identifier_IdentifierBytes32_destroy(platform_value_types_identifier_IdentifierBytes32 *ffi); -%ignore drive_proof_verifier_types_ResourceVotesByIdentity_ctor(std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote *o_0); -%ignore drive_proof_verifier_types_ResourceVotesByIdentity_destroy(drive_proof_verifier_types_ResourceVotesByIdentity *ffi); +%ignore drive_proof_verifier_types_ContestedResource_ctor(platform_value_Value *o_0); +%ignore drive_proof_verifier_types_ContestedResource_destroy(drive_proof_verifier_types_ContestedResource *ffi); +%ignore drive_proof_verifier_types_Voter_ctor(platform_value_types_identifier_Identifier *o_0); +%ignore drive_proof_verifier_types_Voter_destroy(drive_proof_verifier_types_Voter *ffi); %ignore drive_proof_verifier_types_Voters_ctor(std_collections_BTreeSet_drive_proof_verifier_types_Voter *o_0); %ignore drive_proof_verifier_types_Voters_destroy(drive_proof_verifier_types_Voters *ffi); +%ignore drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor(Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll *o_0); +%ignore drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy(drive_proof_verifier_types_VotePollsGroupedByTimestamp *ffi); +%ignore drive_proof_verifier_types_ResourceVotesByIdentity_ctor(std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote *o_0); +%ignore drive_proof_verifier_types_ResourceVotesByIdentity_destroy(drive_proof_verifier_types_ResourceVotesByIdentity *ffi); %ignore drive_proof_verifier_types_Contenders_ctor(Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo *winner, std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument *contenders, uint32_t *abstain_vote_tally, uint32_t *lock_vote_tally); %ignore drive_proof_verifier_types_Contenders_destroy(drive_proof_verifier_types_Contenders *ffi); -%ignore drive_proof_verifier_types_Voter_ctor(platform_value_types_identifier_Identifier *o_0); -%ignore drive_proof_verifier_types_Voter_destroy(drive_proof_verifier_types_Voter *ffi); -%ignore drive_proof_verifier_types_ContestedResource_ctor(platform_value_Value *o_0); -%ignore drive_proof_verifier_types_ContestedResource_destroy(drive_proof_verifier_types_ContestedResource *ffi); %ignore drive_proof_verifier_types_ContestedResources_ctor(Vec_drive_proof_verifier_types_ContestedResource *o_0); %ignore drive_proof_verifier_types_ContestedResources_destroy(drive_proof_verifier_types_ContestedResources *ffi); -%ignore drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor(Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll *o_0); -%ignore drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy(drive_proof_verifier_types_VotePollsGroupedByTimestamp *ffi); -%ignore platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone(std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey *public_keys); -%ignore platform_mobile_identity_Identifier_clone(platform_value_types_identifier_Identifier *identifier); -%ignore platform_mobile_identity_IdentityPublicKeyV0_clone(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 *identity_public_key); -%ignore platform_mobile_identity_IdentityPublicKey_clone(dpp_identity_identity_public_key_IdentityPublicKey *identity_public_key); -%ignore platform_mobile_identity_Identity_clone(dpp_identity_identity_Identity *identity); -%ignore platform_mobile_identity_IdentityV0_clone(dpp_identity_v0_IdentityV0 *identity); -%ignore platform_mobile_data_contracts_DataContractFFI_clone(platform_mobile_data_contracts_DataContractFFI *value); -%ignore platform_mobile_data_contracts_DataContractFFI_ctor(platform_value_types_identifier_Identifier *id, platform_value_types_identifier_Identifier *owner_id, Vec_String *doc_types, uint32_t version); -%ignore platform_mobile_data_contracts_DataContractFFI_destroy(platform_mobile_data_contracts_DataContractFFI *ffi); -%ignore platform_mobile_state_transition_StateTransitionInfo_ctor(uint8_t transition_type, char *name, Vec_u8 *owner_id, uint64_t revision, uint64_t identity_nonce); -%ignore platform_mobile_state_transition_StateTransitionInfo_destroy(platform_mobile_state_transition_StateTransitionInfo *ffi); -%ignore platform_mobile_put_InstantAssetLockProofFFI_ctor(Vec_u8 *instant_lock, Vec_u8 *transaction, uint32_t output_index); -%ignore platform_mobile_put_InstantAssetLockProofFFI_destroy(platform_mobile_put_InstantAssetLockProofFFI *ffi); -%ignore platform_mobile_put_AssetLockProofFFI_Instant_ctor(platform_mobile_put_InstantAssetLockProofFFI *o_o_0); -%ignore platform_mobile_put_AssetLockProofFFI_Chain_ctor(platform_mobile_put_ChainAssetLockProofFFI *o_o_0); -%ignore platform_mobile_put_AssetLockProofFFI_destroy(platform_mobile_put_AssetLockProofFFI *ffi); -%ignore platform_mobile_put_InstantAssetLockProofFFI_clone(platform_mobile_put_InstantAssetLockProofFFI *a); -%ignore platform_mobile_put_ChainAssetLockProofFFI_clone(platform_mobile_put_ChainAssetLockProofFFI *a); -%ignore platform_mobile_put_OutPointFFI_clone(OutPoint *a); -%ignore platform_mobile_put_ChainAssetLockProofFFI_ctor(uint32_t core_chain_locked_height, OutPoint *out_point); -%ignore platform_mobile_put_ChainAssetLockProofFFI_destroy(platform_mobile_put_ChainAssetLockProofFFI *ffi); -%ignore platform_mobile_put_OutPointFFI_ctor(Arr_u8_32 *txid, uint32_t vout); -%ignore platform_mobile_put_OutPointFFI_destroy(platform_mobile_put_OutPointFFI *ffi); -%ignore platform_mobile_fetch_document_StartPoint_StartAfter_ctor(Vec_u8 *o_o_0); -%ignore platform_mobile_fetch_document_StartPoint_StartAt_ctor(Vec_u8 *o_o_0); -%ignore platform_mobile_fetch_document_StartPoint_destroy(platform_mobile_fetch_document_StartPoint *ffi); -%ignore platform_mobile_clone_CoreBlockHeight_clone(dpp_prelude_CoreBlockHeight *height); -%ignore platform_mobile_clone_ContestedResources_clone(drive_proof_verifier_types_ContestedResources *o); -%ignore platform_mobile_clone_ContenderWithSerializedDocument_clone(dpp_voting_contender_structs_contender_ContenderWithSerializedDocument *o); %ignore platform_mobile_clone_Value_clone(platform_value_Value *value); -%ignore platform_mobile_clone_Voter_clone(drive_proof_verifier_types_Voter *o); -%ignore platform_mobile_clone_ValueMap_clone(platform_value_value_map_ValueMap *value_map); -%ignore platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone(Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll *o); %ignore platform_mobile_clone_BinaryData_clone(platform_value_types_binary_data_BinaryData *data); +%ignore platform_mobile_clone_ContestedResource_clone(drive_proof_verifier_types_ContestedResource *o); +%ignore platform_mobile_clone_WhereClause_clone(drive_query_conditions_WhereClause *o); +%ignore platform_mobile_clone_KeyID_clone(dpp_identity_identity_public_key_KeyID *id); +%ignore platform_mobile_clone_ContractBounds_clone(dpp_identity_identity_public_key_contract_bounds_ContractBounds *contract_bounds); +%ignore platform_mobile_clone_Hash256_clone(platform_value_Hash256 *o); +%ignore platform_mobile_clone_OrderClause_clone(drive_query_ordering_OrderClause *o); +%ignore platform_mobile_clone_StateTransitionInfo_clone(platform_mobile_state_transition_StateTransitionInfo *info); +%ignore platform_mobile_clone_TimestampMillis_clone(dpp_identity_identity_public_key_TimestampMillis *time); +%ignore platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone(std_collections_Map_keys_String_values_platform_value_Value *map); +%ignore platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone(Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll *o); +%ignore platform_mobile_clone_ResourceVoteV0_clone(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 *o); +%ignore platform_mobile_clone_Credits_clone(dpp_balances_credits_Credits *credits); +%ignore platform_mobile_clone_ContestedResources_clone(drive_proof_verifier_types_ContestedResources *o); +%ignore platform_mobile_clone_Contenders_clone(drive_proof_verifier_types_Contenders *o); +%ignore platform_mobile_clone_prelude_TimestampMillis_clone(dpp_prelude_TimestampMillis *time); %ignore platform_mobile_clone_Arr_u8_20_clone(Arr_u8_20 *slice); %ignore platform_mobile_clone_Document_clone(dpp_document_Document *document); -%ignore platform_mobile_clone_Vec_u8_clone(Vec_u8 *vec); -%ignore platform_mobile_clone_Hash256_clone(platform_value_Hash256 *o); -%ignore platform_mobile_clone_VotePollsGroupedByTimestamp_clone(drive_proof_verifier_types_VotePollsGroupedByTimestamp *o); +%ignore platform_mobile_clone_Arr_u8_36_clone(Arr_u8_36 *slice); +%ignore platform_mobile_clone_ResourceVote_clone(dpp_voting_votes_resource_vote_ResourceVote *o); +%ignore platform_mobile_clone_BlockHeight_clone(dpp_prelude_BlockHeight *height); +%ignore platform_mobile_clone_ValueMap_clone(platform_value_value_map_ValueMap *value_map); +%ignore platform_mobile_clone_IdentityPublicKeyV1_clone(dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 *public_key); %ignore platform_mobile_clone_Vec_Value_clone(Vec_platform_value_Value *value_vec); -%ignore platform_mobile_clone_Arr_u8_32_clone(Arr_u8_32 *slice); %ignore platform_mobile_clone_Revision_clone(dpp_prelude_Revision *revision); +%ignore platform_mobile_clone_IdentityKeyRemainingBudget_clone(platform_mobile_fetch_identity_IdentityKeyRemainingBudget *info); %ignore platform_mobile_clone_ContestedDocumentResourceVotePoll_clone(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll *o); -%ignore platform_mobile_clone_KeyID_clone(dpp_identity_identity_public_key_KeyID *id); -%ignore platform_mobile_clone_WhereOperator_clone(drive_query_conditions_WhereOperator *o); -%ignore platform_mobile_clone_Credits_clone(dpp_balances_credits_Credits *credits); -%ignore platform_mobile_clone_Arr_u8_36_clone(Arr_u8_36 *slice); -%ignore platform_mobile_clone_BlockHeight_clone(dpp_prelude_BlockHeight *height); -%ignore platform_mobile_clone_ContestedResource_clone(drive_proof_verifier_types_ContestedResource *o); -%ignore platform_mobile_clone_OrderClause_clone(drive_query_ordering_OrderClause *o); -%ignore platform_mobile_clone_prelude_TimestampMillis_clone(dpp_prelude_TimestampMillis *time); +%ignore platform_mobile_clone_Voters_clone(drive_proof_verifier_types_Voters *o); +%ignore platform_mobile_clone_Vec_u8_clone(Vec_u8 *vec); +%ignore platform_mobile_clone_Voter_clone(drive_proof_verifier_types_Voter *o); +%ignore platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone(std_collections_BTreeSet_drive_proof_verifier_types_Voter *o); +%ignore platform_mobile_clone_CoreBlockHeight_clone(dpp_prelude_CoreBlockHeight *height); +%ignore platform_mobile_clone_ContenderWithSerializedDocument_clone(dpp_voting_contender_structs_contender_ContenderWithSerializedDocument *o); %ignore platform_mobile_clone_ContenderWithSerializedDocumentV0_clone(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 *o); -%ignore platform_mobile_clone_ResourceVote_clone(dpp_voting_votes_resource_vote_ResourceVote *o); %ignore platform_mobile_clone_ResourceVoteChoice_clone(dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice *o); %ignore platform_mobile_clone_Vote_clone(dpp_voting_votes_Vote *o); -%ignore platform_mobile_clone_Contenders_clone(drive_proof_verifier_types_Contenders *o); -%ignore platform_mobile_clone_ContractBounds_clone(dpp_identity_identity_public_key_contract_bounds_ContractBounds *contract_bounds); -%ignore platform_mobile_clone_WhereClause_clone(drive_query_conditions_WhereClause *o); +%ignore platform_mobile_clone_DocumentV0_clone(dpp_document_v0_DocumentV0 *document); %ignore platform_mobile_clone_ResourceVotesByIdentity_clone(drive_proof_verifier_types_ResourceVotesByIdentity *o); -%ignore platform_mobile_clone_TimestampMillis_clone(dpp_identity_identity_public_key_TimestampMillis *time); +%ignore platform_mobile_clone_Arr_u8_32_clone(Arr_u8_32 *slice); %ignore platform_mobile_clone_VotePoll_clone(dpp_voting_vote_polls_VotePoll *o); -%ignore platform_mobile_clone_DocumentV0_clone(dpp_document_v0_DocumentV0 *document); -%ignore platform_mobile_clone_StateTransitionInfo_clone(platform_mobile_state_transition_StateTransitionInfo *info); -%ignore platform_mobile_clone_ResourceVoteV0_clone(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 *o); -%ignore platform_mobile_clone_Voters_clone(drive_proof_verifier_types_Voters *o); -%ignore platform_mobile_clone_IdentityPublicKeyV1_clone(dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 *public_key); -%ignore platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone(std_collections_Map_keys_String_values_platform_value_Value *map); -%ignore platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone(std_collections_BTreeSet_drive_proof_verifier_types_Voter *o); +%ignore platform_mobile_clone_WhereOperator_clone(drive_query_conditions_WhereOperator *o); +%ignore platform_mobile_clone_VotePollsGroupedByTimestamp_clone(drive_proof_verifier_types_VotePollsGroupedByTimestamp *o); +%ignore platform_mobile_put_InstantAssetLockProofFFI_ctor(Vec_u8 *instant_lock, Vec_u8 *transaction, uint32_t output_index); +%ignore platform_mobile_put_InstantAssetLockProofFFI_destroy(platform_mobile_put_InstantAssetLockProofFFI *ffi); +%ignore platform_mobile_put_OutPointFFI_clone(OutPoint *a); +%ignore platform_mobile_put_OutPointFFI_ctor(Arr_u8_32 *txid, uint32_t vout); +%ignore platform_mobile_put_OutPointFFI_destroy(platform_mobile_put_OutPointFFI *ffi); +%ignore platform_mobile_put_InstantAssetLockProofFFI_clone(platform_mobile_put_InstantAssetLockProofFFI *a); +%ignore platform_mobile_put_ChainAssetLockProofFFI_ctor(uint32_t core_chain_locked_height, OutPoint *out_point); +%ignore platform_mobile_put_ChainAssetLockProofFFI_destroy(platform_mobile_put_ChainAssetLockProofFFI *ffi); +%ignore platform_mobile_put_AssetLockProofFFI_Instant_ctor(platform_mobile_put_InstantAssetLockProofFFI *o_o_0); +%ignore platform_mobile_put_AssetLockProofFFI_Chain_ctor(platform_mobile_put_ChainAssetLockProofFFI *o_o_0); +%ignore platform_mobile_put_AssetLockProofFFI_destroy(platform_mobile_put_AssetLockProofFFI *ffi); +%ignore platform_mobile_put_ChainAssetLockProofFFI_clone(platform_mobile_put_ChainAssetLockProofFFI *a); +%ignore platform_mobile_identity_IdentityPublicKey_clone(dpp_identity_identity_public_key_IdentityPublicKey *identity_public_key); +%ignore platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone(std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey *public_keys); +%ignore platform_mobile_identity_IdentityV0_clone(dpp_identity_v0_IdentityV0 *identity); +%ignore platform_mobile_identity_Identity_clone(dpp_identity_identity_Identity *identity); +%ignore platform_mobile_identity_Identifier_clone(platform_value_types_identifier_Identifier *identifier); +%ignore platform_mobile_identity_IdentityPublicKeyV0_clone(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 *identity_public_key); +%ignore platform_mobile_data_contracts_DataContractFFI_clone(platform_mobile_data_contracts_DataContractFFI *value); +%ignore platform_mobile_data_contracts_DataContractFFI_ctor(platform_value_types_identifier_Identifier *id, platform_value_types_identifier_Identifier *owner_id, Vec_String *doc_types, uint32_t version, bool requires_identity_encryption_bounded_key, bool requires_identity_decryption_bounded_key); +%ignore platform_mobile_data_contracts_DataContractFFI_destroy(platform_mobile_data_contracts_DataContractFFI *ffi); +%ignore platform_mobile_state_transition_StateTransitionInfo_ctor(uint8_t transition_type, char *name, Vec_u8 *owner_id, uint64_t revision, uint64_t identity_nonce); +%ignore platform_mobile_state_transition_StateTransitionInfo_destroy(platform_mobile_state_transition_StateTransitionInfo *ffi); +%ignore platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor(uint32_t key_id, bool has_remaining_budget, uint64_t remaining_budget); +%ignore platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy(platform_mobile_fetch_identity_IdentityKeyRemainingBudget *ffi); +%ignore platform_mobile_fetch_document_StartPoint_StartAfter_ctor(Vec_u8 *o_o_0); +%ignore platform_mobile_fetch_document_StartPoint_StartAt_ctor(Vec_u8 *o_o_0); +%ignore platform_mobile_fetch_document_StartPoint_destroy(platform_mobile_fetch_document_StartPoint *ffi); +%ignore dash_sdk_platform_types_identity_PublicKeyHash_ctor(Arr_u8_20 *o_0); +%ignore dash_sdk_platform_types_identity_PublicKeyHash_destroy(dash_sdk_platform_types_identity_PublicKeyHash *ffi); %ignore drive_query_ordering_OrderClause_ctor(char *field, bool ascending); %ignore drive_query_ordering_OrderClause_destroy(drive_query_ordering_OrderClause *ffi); %ignore drive_query_conditions_WhereOperator_Equal_ctor(); @@ -146,34 +101,73 @@ %ignore drive_query_conditions_WhereOperator_destroy(drive_query_conditions_WhereOperator *ffi); %ignore drive_query_conditions_WhereClause_ctor(char *field, drive_query_conditions_WhereOperator *operator_, platform_value_Value *value); %ignore drive_query_conditions_WhereClause_destroy(drive_query_conditions_WhereClause *ffi); -%ignore dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 *o_o_0); -%ignore dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor(dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 *o_o_0); -%ignore dpp_identity_identity_public_key_IdentityPublicKey_destroy(dpp_identity_identity_public_key_IdentityPublicKey *ffi); +%ignore dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor(); +%ignore dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor(platform_value_types_identifier_Identifier *o_o_0); +%ignore dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor(); +%ignore dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy(dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo *ffi); +%ignore dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 *o_o_0); +%ignore dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy(dpp_voting_contender_structs_contender_ContenderWithSerializedDocument *ffi); +%ignore dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor(platform_value_types_identifier_Identifier *identity_id, Vec_u8 *serialized_document, uint32_t *vote_tally); +%ignore dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 *ffi); +%ignore dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll *o_o_0); +%ignore dpp_voting_vote_polls_VotePoll_destroy(dpp_voting_vote_polls_VotePoll *ffi); +%ignore dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor(platform_value_types_identifier_Identifier *contract_id, char *document_type_name, char *index_name, Vec_platform_value_Value *index_values); +%ignore dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll *ffi); +%ignore dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor(platform_value_types_identifier_Identifier *o_o_0); +%ignore dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor(); +%ignore dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor(); +%ignore dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy(dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice *ffi); +%ignore dpp_voting_votes_Vote_ResourceVote_ctor(dpp_voting_votes_resource_vote_ResourceVote *o_o_0); +%ignore dpp_voting_votes_Vote_destroy(dpp_voting_votes_Vote *ffi); +%ignore dpp_voting_votes_resource_vote_ResourceVote_V0_ctor(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 *o_o_0); +%ignore dpp_voting_votes_resource_vote_ResourceVote_destroy(dpp_voting_votes_resource_vote_ResourceVote *ffi); +%ignore dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor(dpp_voting_vote_polls_VotePoll *vote_poll, dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice *resource_vote_choice); +%ignore dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 *ffi); +%ignore dpp_document_Document_V0_ctor(dpp_document_v0_DocumentV0 *o_o_0); +%ignore dpp_document_Document_destroy(dpp_document_Document *ffi); +%ignore dpp_document_v0_DocumentV0_ctor(platform_value_types_identifier_Identifier *id, platform_value_types_identifier_Identifier *owner_id, std_collections_Map_keys_String_values_platform_value_Value *properties, dpp_prelude_Revision *revision, dpp_identity_identity_public_key_TimestampMillis *created_at, dpp_identity_identity_public_key_TimestampMillis *updated_at, dpp_identity_identity_public_key_TimestampMillis *transferred_at, dpp_prelude_BlockHeight *created_at_block_height, dpp_prelude_BlockHeight *updated_at_block_height, dpp_prelude_BlockHeight *transferred_at_block_height, dpp_prelude_CoreBlockHeight *created_at_core_block_height, dpp_prelude_CoreBlockHeight *updated_at_core_block_height, dpp_prelude_CoreBlockHeight *transferred_at_core_block_height, platform_value_types_identifier_Identifier *creator_id, dpp_identity_identity_public_key_TimestampMillis *moderated_at, platform_value_types_identifier_Identifier *moderated_by, uint32_t *contract_version); +%ignore dpp_document_v0_DocumentV0_destroy(dpp_document_v0_DocumentV0 *ffi); +%ignore dpp_prelude_TimestampMillis_ctor(uint64_t o_0); +%ignore dpp_prelude_TimestampMillis_destroy(dpp_prelude_TimestampMillis *ffi); +%ignore dpp_prelude_BlockHeight_ctor(uint64_t o_0); +%ignore dpp_prelude_BlockHeight_destroy(dpp_prelude_BlockHeight *ffi); +%ignore dpp_prelude_CoreBlockHeight_ctor(uint32_t o_0); +%ignore dpp_prelude_CoreBlockHeight_destroy(dpp_prelude_CoreBlockHeight *ffi); +%ignore dpp_prelude_Revision_ctor(uint64_t o_0); +%ignore dpp_prelude_Revision_destroy(dpp_prelude_Revision *ffi); +%ignore dpp_balances_credits_Credits_ctor(uint64_t o_0); +%ignore dpp_balances_credits_Credits_destroy(dpp_balances_credits_Credits *ffi); +%ignore dpp_block_epoch_Epoch_ctor(dpp_block_epoch_EpochIndex *index, Arr_u8_2 *key); +%ignore dpp_block_epoch_Epoch_destroy(dpp_block_epoch_Epoch *ffi); +%ignore dpp_block_epoch_EpochIndex_ctor(uint16_t o_0); +%ignore dpp_block_epoch_EpochIndex_destroy(dpp_block_epoch_EpochIndex *ffi); +%ignore dpp_block_block_info_BlockInfo_ctor(dpp_prelude_TimestampMillis *time_ms, dpp_prelude_BlockHeight *height, dpp_prelude_CoreBlockHeight *core_height, dpp_block_epoch_Epoch *epoch); +%ignore dpp_block_block_info_BlockInfo_destroy(dpp_block_block_info_BlockInfo *ffi); +%ignore dpp_identity_v0_IdentityV0_ctor(platform_value_types_identifier_Identifier *id, std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey *public_keys, uint64_t balance, dpp_prelude_Revision *revision); +%ignore dpp_identity_v0_IdentityV0_destroy(dpp_identity_v0_IdentityV0 *ffi); +%ignore dpp_identity_identity_public_key_TimestampMillis_ctor(uint64_t o_0); +%ignore dpp_identity_identity_public_key_TimestampMillis_destroy(dpp_identity_identity_public_key_TimestampMillis *ffi); %ignore dpp_identity_identity_public_key_KeyCount_ctor(dpp_identity_identity_public_key_KeyID *o_0); %ignore dpp_identity_identity_public_key_KeyCount_destroy(dpp_identity_identity_public_key_KeyCount *ffi); %ignore dpp_identity_identity_public_key_KeyID_ctor(uint32_t o_0); %ignore dpp_identity_identity_public_key_KeyID_destroy(dpp_identity_identity_public_key_KeyID *ffi); -%ignore dpp_identity_identity_public_key_TimestampMillis_ctor(uint64_t o_0); -%ignore dpp_identity_identity_public_key_TimestampMillis_destroy(dpp_identity_identity_public_key_TimestampMillis *ffi); -%ignore dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor(); -%ignore dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor(); -%ignore dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor(); -%ignore dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor(); -%ignore dpp_identity_identity_public_key_security_level_SecurityLevel_destroy(dpp_identity_identity_public_key_security_level_SecurityLevel *ffi); -%ignore dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor(dpp_identity_identity_public_key_KeyID *id, dpp_identity_identity_public_key_purpose_Purpose *purpose, dpp_identity_identity_public_key_security_level_SecurityLevel *security_level, dpp_identity_identity_public_key_contract_bounds_ContractBounds *contract_bounds, dpp_identity_identity_public_key_key_type_KeyType *key_type, bool read_only, platform_value_types_binary_data_BinaryData *data, dpp_identity_identity_public_key_TimestampMillis *disabled_at); -%ignore dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 *ffi); -%ignore dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor(KeyID *id, Purpose *purpose, SecurityLevel *security_level, dpp_identity_identity_public_key_contract_bounds_ContractBounds *contract_bounds, KeyType *key_type, bool read_only, platform_value_types_binary_data_BinaryData *data, dpp_identity_identity_public_key_TimestampMillis *disabled_at, dpp_balances_credits_Credits *total_budget, dpp_identity_identity_public_key_TimestampMillis *expires_at); -%ignore dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy(dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 *ffi); +%ignore dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 *o_o_0); +%ignore dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor(dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 *o_o_0); +%ignore dpp_identity_identity_public_key_IdentityPublicKey_destroy(dpp_identity_identity_public_key_IdentityPublicKey *ffi); %ignore dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor(platform_value_types_identifier_Identifier *id); %ignore dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor(platform_value_types_identifier_Identifier *id, char *document_type_name); %ignore dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor(platform_value_types_identifier_Identifier *id); %ignore dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy(dpp_identity_identity_public_key_contract_bounds_ContractBounds *ffi); +%ignore dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor(dpp_identity_identity_public_key_KeyID *id, dpp_identity_identity_public_key_purpose_Purpose *purpose, dpp_identity_identity_public_key_security_level_SecurityLevel *security_level, dpp_identity_identity_public_key_contract_bounds_ContractBounds *contract_bounds, dpp_identity_identity_public_key_key_type_KeyType *key_type, bool read_only, platform_value_types_binary_data_BinaryData *data, dpp_identity_identity_public_key_TimestampMillis *disabled_at); +%ignore dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy(dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 *ffi); %ignore dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor(); %ignore dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor(); %ignore dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor(); %ignore dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor(); %ignore dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor(); %ignore dpp_identity_identity_public_key_key_type_KeyType_destroy(dpp_identity_identity_public_key_key_type_KeyType *ffi); +%ignore dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor(KeyID *id, Purpose *purpose, SecurityLevel *security_level, dpp_identity_identity_public_key_contract_bounds_ContractBounds *contract_bounds, KeyType *key_type, bool read_only, platform_value_types_binary_data_BinaryData *data, dpp_identity_identity_public_key_TimestampMillis *disabled_at, dpp_balances_credits_Credits *total_budget, dpp_identity_identity_public_key_TimestampMillis *expires_at); +%ignore dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy(dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 *ffi); %ignore dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor(); %ignore dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor(); %ignore dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor(); @@ -182,127 +176,148 @@ %ignore dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor(); %ignore dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor(); %ignore dpp_identity_identity_public_key_purpose_Purpose_destroy(dpp_identity_identity_public_key_purpose_Purpose *ffi); +%ignore dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor(); +%ignore dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor(); +%ignore dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor(); +%ignore dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor(); +%ignore dpp_identity_identity_public_key_security_level_SecurityLevel_destroy(dpp_identity_identity_public_key_security_level_SecurityLevel *ffi); %ignore dpp_identity_identity_Identity_V0_ctor(dpp_identity_v0_IdentityV0 *o_o_0); %ignore dpp_identity_identity_Identity_destroy(dpp_identity_identity_Identity *ffi); -%ignore dpp_identity_v0_IdentityV0_ctor(platform_value_types_identifier_Identifier *id, std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey *public_keys, uint64_t balance, dpp_prelude_Revision *revision); -%ignore dpp_identity_v0_IdentityV0_destroy(dpp_identity_v0_IdentityV0 *ffi); -%ignore dpp_balances_credits_Credits_ctor(uint64_t o_0); -%ignore dpp_balances_credits_Credits_destroy(dpp_balances_credits_Credits *ffi); -%ignore dpp_voting_votes_Vote_ResourceVote_ctor(dpp_voting_votes_resource_vote_ResourceVote *o_o_0); -%ignore dpp_voting_votes_Vote_destroy(dpp_voting_votes_Vote *ffi); -%ignore dpp_voting_votes_resource_vote_ResourceVote_V0_ctor(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 *o_o_0); -%ignore dpp_voting_votes_resource_vote_ResourceVote_destroy(dpp_voting_votes_resource_vote_ResourceVote *ffi); -%ignore dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor(dpp_voting_vote_polls_VotePoll *vote_poll, dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice *resource_vote_choice); -%ignore dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy(dpp_voting_votes_resource_vote_v0_ResourceVoteV0 *ffi); -%ignore dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 *o_o_0); -%ignore dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy(dpp_voting_contender_structs_contender_ContenderWithSerializedDocument *ffi); -%ignore dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor(platform_value_types_identifier_Identifier *identity_id, Vec_u8 *serialized_document, uint32_t *vote_tally); -%ignore dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy(dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 *ffi); -%ignore dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor(platform_value_types_identifier_Identifier *o_o_0); -%ignore dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor(); -%ignore dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor(); -%ignore dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy(dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice *ffi); -%ignore dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor(); -%ignore dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor(platform_value_types_identifier_Identifier *o_o_0); -%ignore dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor(); -%ignore dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy(dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo *ffi); -%ignore dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll *o_o_0); -%ignore dpp_voting_vote_polls_VotePoll_destroy(dpp_voting_vote_polls_VotePoll *ffi); -%ignore dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor(platform_value_types_identifier_Identifier *contract_id, char *document_type_name, char *index_name, Vec_platform_value_Value *index_values); -%ignore dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy(dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll *ffi); -%ignore dpp_block_epoch_EpochIndex_ctor(uint16_t o_0); -%ignore dpp_block_epoch_EpochIndex_destroy(dpp_block_epoch_EpochIndex *ffi); -%ignore dpp_block_epoch_Epoch_ctor(dpp_block_epoch_EpochIndex *index, Arr_u8_2 *key); -%ignore dpp_block_epoch_Epoch_destroy(dpp_block_epoch_Epoch *ffi); -%ignore dpp_block_block_info_BlockInfo_ctor(dpp_prelude_TimestampMillis *time_ms, dpp_prelude_BlockHeight *height, dpp_prelude_CoreBlockHeight *core_height, dpp_block_epoch_Epoch *epoch); -%ignore dpp_block_block_info_BlockInfo_destroy(dpp_block_block_info_BlockInfo *ffi); -%ignore dpp_prelude_Revision_ctor(uint64_t o_0); -%ignore dpp_prelude_Revision_destroy(dpp_prelude_Revision *ffi); -%ignore dpp_prelude_TimestampMillis_ctor(uint64_t o_0); -%ignore dpp_prelude_TimestampMillis_destroy(dpp_prelude_TimestampMillis *ffi); -%ignore dpp_prelude_BlockHeight_ctor(uint64_t o_0); -%ignore dpp_prelude_BlockHeight_destroy(dpp_prelude_BlockHeight *ffi); -%ignore dpp_prelude_CoreBlockHeight_ctor(uint32_t o_0); -%ignore dpp_prelude_CoreBlockHeight_destroy(dpp_prelude_CoreBlockHeight *ffi); -%ignore dpp_document_Document_V0_ctor(dpp_document_v0_DocumentV0 *o_o_0); -%ignore dpp_document_Document_destroy(dpp_document_Document *ffi); -%ignore dpp_document_v0_DocumentV0_ctor(platform_value_types_identifier_Identifier *id, platform_value_types_identifier_Identifier *owner_id, std_collections_Map_keys_String_values_platform_value_Value *properties, dpp_prelude_Revision *revision, dpp_identity_identity_public_key_TimestampMillis *created_at, dpp_identity_identity_public_key_TimestampMillis *updated_at, dpp_identity_identity_public_key_TimestampMillis *transferred_at, dpp_prelude_BlockHeight *created_at_block_height, dpp_prelude_BlockHeight *updated_at_block_height, dpp_prelude_BlockHeight *transferred_at_block_height, dpp_prelude_CoreBlockHeight *created_at_core_block_height, dpp_prelude_CoreBlockHeight *updated_at_core_block_height, dpp_prelude_CoreBlockHeight *transferred_at_core_block_height, platform_value_types_identifier_Identifier *creator_id, uint32_t *contract_version); -%ignore dpp_document_v0_DocumentV0_destroy(dpp_document_v0_DocumentV0 *ffi); -%ignore Vec_drive_query_ordering_OrderClause_ctor(uintptr_t count, drive_query_ordering_OrderClause **values); -%ignore Vec_drive_query_ordering_OrderClause_destroy(Vec_drive_query_ordering_OrderClause *ffi); -%ignore Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor(platform_mobile_state_transition_StateTransitionInfo *ok, char *error); -%ignore Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy(Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String *ffi); -%ignore Vec_dpp_document_Document_ctor(uintptr_t count, dpp_document_Document **values); -%ignore Vec_dpp_document_Document_destroy(Vec_dpp_document_Document *ffi); -%ignore Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor(Vec_dpp_identity_identity_public_key_IdentityPublicKey *ok, char *error); -%ignore Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy(Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String *ffi); -%ignore Arr_u8_32_ctor(uintptr_t count, uint8_t *values); -%ignore Arr_u8_32_destroy(Arr_u8_32 *ffi); -%ignore Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor(drive_proof_verifier_types_ResourceVotesByIdentity *ok, char *error); -%ignore Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy(Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String *ffi); -%ignore Vec_platform_value_Value_ctor(uintptr_t count, platform_value_Value **values); -%ignore Vec_platform_value_Value_destroy(Vec_platform_value_Value *ffi); -%ignore Arr_u8_2_ctor(uintptr_t count, uint8_t *values); -%ignore Arr_u8_2_destroy(Arr_u8_2 *ffi); -%ignore Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor(uintptr_t count, Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll **values); -%ignore Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy(Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll *ffi); +%ignore platform_value_Value_U128_ctor(uint8_t); +%ignore platform_value_Value_I128_ctor(uint8_t); +%ignore platform_value_Value_U64_ctor(uint64_t o_o_0); +%ignore platform_value_Value_I64_ctor(int64_t o_o_0); +%ignore platform_value_Value_U32_ctor(uint32_t o_o_0); +%ignore platform_value_Value_I32_ctor(int32_t o_o_0); +%ignore platform_value_Value_U16_ctor(uint16_t o_o_0); +%ignore platform_value_Value_I16_ctor(int16_t o_o_0); +%ignore platform_value_Value_U8_ctor(uint8_t o_o_0); +%ignore platform_value_Value_I8_ctor(int8_t o_o_0); +%ignore platform_value_Value_Bytes_ctor(Vec_u8 *o_o_0); +%ignore platform_value_Value_Bytes20_ctor(Arr_u8_20 *o_o_0); +%ignore platform_value_Value_Bytes32_ctor(Arr_u8_32 *o_o_0); +%ignore platform_value_Value_Bytes36_ctor(Arr_u8_36 *o_o_0); +%ignore platform_value_Value_EnumU8_ctor(Vec_u8 *o_o_0); +%ignore platform_value_Value_EnumString_ctor(Vec_String *o_o_0); +%ignore platform_value_Value_Identifier_ctor(platform_value_Hash256 *o_o_0); +%ignore platform_value_Value_Float_ctor(double o_o_0); +%ignore platform_value_Value_Text_ctor(char *o_o_0); +%ignore platform_value_Value_Bool_ctor(bool o_o_0); +%ignore platform_value_Value_Null_ctor(); +%ignore platform_value_Value_Array_ctor(Vec_platform_value_Value *o_o_0); +%ignore platform_value_Value_Map_ctor(platform_value_value_map_ValueMap *o_o_0); +%ignore platform_value_Value_destroy(platform_value_Value *ffi); +%ignore platform_value_Hash256_ctor(Arr_u8_32 *o_0); +%ignore platform_value_Hash256_destroy(platform_value_Hash256 *ffi); +%ignore platform_value_value_map_ValueMap_ctor(Vec_Tuple_platform_value_Value_platform_value_Value *o_0); +%ignore platform_value_value_map_ValueMap_destroy(platform_value_value_map_ValueMap *ffi); +%ignore platform_value_types_identifier_IdentifierBytes32_ctor(Arr_u8_32 *o_0); +%ignore platform_value_types_identifier_IdentifierBytes32_destroy(platform_value_types_identifier_IdentifierBytes32 *ffi); +%ignore platform_value_types_identifier_Identifier_ctor(platform_value_types_identifier_IdentifierBytes32 *o_0); +%ignore platform_value_types_identifier_Identifier_destroy(platform_value_types_identifier_Identifier *ffi); +%ignore platform_value_types_binary_data_BinaryData_ctor(Vec_u8 *o_0); +%ignore platform_value_types_binary_data_BinaryData_destroy(platform_value_types_binary_data_BinaryData *ffi); +%ignore platform_value_error_Error_Unsupported_ctor(char *o_o_0); +%ignore platform_value_error_Error_StructureError_ctor(char *o_o_0); +%ignore platform_value_error_Error_PathError_ctor(char *o_o_0); +%ignore platform_value_error_Error_IntegerSizeError_ctor(); +%ignore platform_value_error_Error_IntegerParsingError_ctor(); +%ignore platform_value_error_Error_StringDecodingError_ctor(char *o_o_0); +%ignore platform_value_error_Error_KeyMustBeAString_ctor(); +%ignore platform_value_error_Error_ByteLengthNot20BytesError_ctor(char *o_o_0); +%ignore platform_value_error_Error_ByteLengthNot32BytesError_ctor(char *o_o_0); +%ignore platform_value_error_Error_ByteLengthNot36BytesError_ctor(char *o_o_0); +%ignore platform_value_error_Error_SerdeSerializationError_ctor(char *o_o_0); +%ignore platform_value_error_Error_SerdeDeserializationError_ctor(char *o_o_0); +%ignore platform_value_error_Error_CborSerializationError_ctor(char *o_o_0); +%ignore platform_value_error_Error_destroy(platform_value_error_Error *ffi); %ignore Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor(dpp_prelude_TimestampMillis *o_0, Vec_dpp_voting_vote_polls_VotePoll *o_1); %ignore Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy(Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll *ffi); %ignore Result_ok_u64_err_String_ctor(uint64_t *ok, char *error); %ignore Result_ok_u64_err_String_destroy(Result_ok_u64_err_String *ffi); -%ignore Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor(dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo *o_0, dpp_block_block_info_BlockInfo *o_1); -%ignore Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy(Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo *ffi); -%ignore Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor(dpp_voting_votes_Vote *ok, char *error); -%ignore Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy(Result_ok_Option_dpp_voting_votes_Vote_err_String *ffi); -%ignore Tuple_platform_value_Value_platform_value_Value_ctor(platform_value_Value *o_0, platform_value_Value *o_1); -%ignore Tuple_platform_value_Value_platform_value_Value_destroy(Tuple_platform_value_Value_platform_value_Value *ffi); -%ignore std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor(uintptr_t count, dpp_identity_identity_public_key_KeyID **keys, dpp_identity_identity_public_key_IdentityPublicKey **values); -%ignore std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy(std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey *ffi); -%ignore Vec_Tuple_platform_value_Value_platform_value_Value_ctor(uintptr_t count, Tuple_platform_value_Value_platform_value_Value **values); -%ignore Vec_Tuple_platform_value_Value_platform_value_Value_destroy(Vec_Tuple_platform_value_Value_platform_value_Value *ffi); -%ignore Vec_dpp_identity_identity_public_key_KeyID_ctor(uintptr_t count, dpp_identity_identity_public_key_KeyID **values); -%ignore Vec_dpp_identity_identity_public_key_KeyID_destroy(Vec_dpp_identity_identity_public_key_KeyID *ffi); -%ignore Result_ok_Vec_dpp_document_Document_err_String_ctor(Vec_dpp_document_Document *ok, char *error); -%ignore Result_ok_Vec_dpp_document_Document_err_String_destroy(Result_ok_Vec_dpp_document_Document_err_String *ffi); %ignore Vec_dpp_voting_vote_polls_VotePoll_ctor(uintptr_t count, dpp_voting_vote_polls_VotePoll **values); %ignore Vec_dpp_voting_vote_polls_VotePoll_destroy(Vec_dpp_voting_vote_polls_VotePoll *ffi); -%ignore Result_ok_dpp_identity_identity_Identity_err_String_ctor(dpp_identity_identity_Identity *ok, char *error); -%ignore Result_ok_dpp_identity_identity_Identity_err_String_destroy(Result_ok_dpp_identity_identity_Identity_err_String *ffi); -%ignore Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor(dpp_identity_identity_Identity *ok, char *error); -%ignore Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy(Result_ok_Option_dpp_identity_identity_Identity_err_String *ffi); +%ignore Vec_Tuple_platform_value_Value_platform_value_Value_ctor(uintptr_t count, Tuple_platform_value_Value_platform_value_Value **values); +%ignore Vec_Tuple_platform_value_Value_platform_value_Value_destroy(Vec_Tuple_platform_value_Value_platform_value_Value *ffi); %ignore Result_ok_dpp_document_Document_err_String_ctor(dpp_document_Document *ok, char *error); %ignore Result_ok_dpp_document_Document_err_String_destroy(Result_ok_dpp_document_Document_err_String *ffi); -%ignore Arr_u8_20_ctor(uintptr_t count, uint8_t *values); -%ignore Arr_u8_20_destroy(Arr_u8_20 *ffi); -%ignore Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor(drive_proof_verifier_types_ContestedResources *ok, char *error); -%ignore Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy(Result_ok_drive_proof_verifier_types_ContestedResources_err_String *ffi); -%ignore Result_ok_Vec_u8_err_String_ctor(Vec_u8 *ok, char *error); -%ignore Result_ok_Vec_u8_err_String_destroy(Result_ok_Vec_u8_err_String *ffi); %ignore Result_ok_dpp_voting_votes_Vote_err_String_ctor(dpp_voting_votes_Vote *ok, char *error); %ignore Result_ok_dpp_voting_votes_Vote_err_String_destroy(Result_ok_dpp_voting_votes_Vote_err_String *ffi); +%ignore Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor(DashSdk *ok, char *error); +%ignore Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy(Result_ok_platform_mobile_sdk_DashSdk_err_String *ffi); +%ignore Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor(platform_mobile_fetch_identity_IdentityKeyRemainingBudget *ok, char *error); +%ignore Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy(Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String *ffi); +%ignore std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor(uintptr_t count, platform_value_types_identifier_Identifier **keys, dpp_voting_contender_structs_contender_ContenderWithSerializedDocument **values); +%ignore std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy(std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument *ffi); +%ignore Result_ok_dpp_identity_identity_Identity_err_String_ctor(dpp_identity_identity_Identity *ok, char *error); +%ignore Result_ok_dpp_identity_identity_Identity_err_String_destroy(Result_ok_dpp_identity_identity_Identity_err_String *ffi); +%ignore Result_ok_Vec_dpp_document_Document_err_String_ctor(Vec_dpp_document_Document *ok, char *error); +%ignore Result_ok_Vec_dpp_document_Document_err_String_destroy(Result_ok_Vec_dpp_document_Document_err_String *ffi); +%ignore Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor(drive_proof_verifier_types_ResourceVotesByIdentity *ok, char *error); +%ignore Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy(Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String *ffi); +%ignore Vec_drive_query_conditions_WhereClause_ctor(uintptr_t count, drive_query_conditions_WhereClause **values); +%ignore Vec_drive_query_conditions_WhereClause_destroy(Vec_drive_query_conditions_WhereClause *ffi); +%ignore std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor(uintptr_t count, dpp_identity_identity_public_key_KeyID **keys, dpp_identity_identity_public_key_IdentityPublicKey **values); +%ignore std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy(std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey *ffi); +%ignore Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor(Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget *ok, char *error); +%ignore Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy(Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String *ffi); +%ignore Tuple_platform_value_Value_platform_value_Value_ctor(platform_value_Value *o_0, platform_value_Value *o_1); +%ignore Tuple_platform_value_Value_platform_value_Value_destroy(Tuple_platform_value_Value_platform_value_Value *ffi); +%ignore std_collections_Map_keys_String_values_platform_value_Value_ctor(uintptr_t count, char **keys, platform_value_Value **values); +%ignore std_collections_Map_keys_String_values_platform_value_Value_destroy(std_collections_Map_keys_String_values_platform_value_Value *ffi); +%ignore Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor(platform_mobile_state_transition_StateTransitionInfo *ok, char *error); +%ignore Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy(Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String *ffi); +%ignore Arr_u8_32_ctor(uintptr_t count, uint8_t *values); +%ignore Arr_u8_32_destroy(Arr_u8_32 *ffi); %ignore Vec_String_ctor(uintptr_t count, char **values); %ignore Vec_String_destroy(Vec_String *ffi); -%ignore Arr_u8_36_ctor(uintptr_t count, uint8_t *values); -%ignore Arr_u8_36_destroy(Arr_u8_36 *ffi); -%ignore Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor(drive_proof_verifier_types_VotePollsGroupedByTimestamp *ok, char *error); -%ignore Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy(Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String *ffi); -%ignore Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor(uintptr_t count, dpp_identity_identity_public_key_IdentityPublicKey **values); -%ignore Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy(Vec_dpp_identity_identity_public_key_IdentityPublicKey *ffi); +%ignore Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor(drive_proof_verifier_types_Contenders *ok, char *error); +%ignore Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy(Result_ok_drive_proof_verifier_types_Contenders_err_String *ffi); +%ignore Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor(uintptr_t count, Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll **values); +%ignore Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy(Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll *ffi); +%ignore Vec_drive_query_ordering_OrderClause_ctor(uintptr_t count, drive_query_ordering_OrderClause **values); +%ignore Vec_drive_query_ordering_OrderClause_destroy(Vec_drive_query_ordering_OrderClause *ffi); %ignore Vec_u8_ctor(uintptr_t count, uint8_t *values); %ignore Vec_u8_destroy(Vec_u8 *ffi); -%ignore std_collections_Map_keys_String_values_platform_value_Value_ctor(uintptr_t count, char **keys, platform_value_Value **values); -%ignore std_collections_Map_keys_String_values_platform_value_Value_destroy(std_collections_Map_keys_String_values_platform_value_Value *ffi); +%ignore Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor(uintptr_t count, platform_mobile_fetch_identity_IdentityKeyRemainingBudget **values); +%ignore Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy(Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget *ffi); +%ignore Vec_dpp_document_Document_ctor(uintptr_t count, dpp_document_Document **values); +%ignore Vec_dpp_document_Document_destroy(Vec_dpp_document_Document *ffi); +%ignore Arr_u8_20_ctor(uintptr_t count, uint8_t *values); +%ignore Arr_u8_20_destroy(Arr_u8_20 *ffi); +%ignore Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor(uintptr_t count, dpp_identity_identity_public_key_IdentityPublicKey **values); +%ignore Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy(Vec_dpp_identity_identity_public_key_IdentityPublicKey *ffi); +%ignore Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor(dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo *o_0, dpp_block_block_info_BlockInfo *o_1); +%ignore Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy(Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo *ffi); +%ignore Arr_u8_36_ctor(uintptr_t count, uint8_t *values); +%ignore Arr_u8_36_destroy(Arr_u8_36 *ffi); +%ignore Vec_platform_value_Value_ctor(uintptr_t count, platform_value_Value **values); +%ignore Vec_platform_value_Value_destroy(Vec_platform_value_Value *ffi); +%ignore Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor(platform_value_types_identifier_Identifier *ok, char *error); +%ignore Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy(Result_ok_Option_platform_value_types_identifier_Identifier_err_String *ffi); %ignore Vec_drive_proof_verifier_types_ContestedResource_ctor(uintptr_t count, drive_proof_verifier_types_ContestedResource **values); %ignore Vec_drive_proof_verifier_types_ContestedResource_destroy(Vec_drive_proof_verifier_types_ContestedResource *ffi); -%ignore Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor(drive_proof_verifier_types_Contenders *ok, char *error); -%ignore Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy(Result_ok_drive_proof_verifier_types_Contenders_err_String *ffi); -%ignore Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor(platform_mobile_data_contracts_DataContractFFI *ok, char *error); -%ignore Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy(Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String *ffi); -%ignore std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor(uintptr_t count, drive_proof_verifier_types_Voter **values); -%ignore std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy(std_collections_BTreeSet_drive_proof_verifier_types_Voter *ffi); -%ignore std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor(uintptr_t count, platform_value_types_identifier_Identifier **keys, dpp_voting_contender_structs_contender_ContenderWithSerializedDocument **values); -%ignore std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy(std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument *ffi); +%ignore Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor(drive_proof_verifier_types_VotePollsGroupedByTimestamp *ok, char *error); +%ignore Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy(Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String *ffi); +%ignore Vec_dpp_identity_identity_public_key_KeyID_ctor(uintptr_t count, dpp_identity_identity_public_key_KeyID **values); +%ignore Vec_dpp_identity_identity_public_key_KeyID_destroy(Vec_dpp_identity_identity_public_key_KeyID *ffi); +%ignore Result_ok_Vec_u8_err_String_ctor(Vec_u8 *ok, char *error); +%ignore Result_ok_Vec_u8_err_String_destroy(Result_ok_Vec_u8_err_String *ffi); %ignore std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor(uintptr_t count, platform_value_types_identifier_Identifier **keys, dpp_voting_votes_resource_vote_ResourceVote **values); %ignore std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy(std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote *ffi); -%ignore Vec_drive_query_conditions_WhereClause_ctor(uintptr_t count, drive_query_conditions_WhereClause **values); -%ignore Vec_drive_query_conditions_WhereClause_destroy(Vec_drive_query_conditions_WhereClause *ffi); +%ignore Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor(dpp_voting_votes_Vote *ok, char *error); +%ignore Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy(Result_ok_Option_dpp_voting_votes_Vote_err_String *ffi); +%ignore Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor(dpp_identity_identity_Identity *ok, char *error); +%ignore Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy(Result_ok_Option_dpp_identity_identity_Identity_err_String *ffi); +%ignore Vec_u32_ctor(uintptr_t count, uint32_t *values); +%ignore Vec_u32_destroy(Vec_u32 *ffi); +%ignore Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor(Vec_dpp_identity_identity_public_key_IdentityPublicKey *ok, char *error); +%ignore Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy(Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String *ffi); +%ignore std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor(uintptr_t count, drive_proof_verifier_types_Voter **values); +%ignore std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy(std_collections_BTreeSet_drive_proof_verifier_types_Voter *ffi); +%ignore Arr_u8_2_ctor(uintptr_t count, uint8_t *values); +%ignore Arr_u8_2_destroy(Arr_u8_2 *ffi); +%ignore Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor(platform_mobile_data_contracts_DataContractFFI *ok, char *error); +%ignore Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy(Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String *ffi); +%ignore Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor(drive_proof_verifier_types_ContestedResources *ok, char *error); +%ignore Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy(Result_ok_drive_proof_verifier_types_ContestedResources_err_String *ffi); diff --git a/dash-sdk-java/src/main/swig/key_wallet.i b/dash-sdk-java/src/main/swig/key_wallet.i new file mode 100644 index 00000000..961377ca --- /dev/null +++ b/dash-sdk-java/src/main/swig/key_wallet.i @@ -0,0 +1,15 @@ +%rename(applicationSessionAuthenticationPath) platform_mobile_key_wallet_application_session_authentication_path(bool is_testnet, Arr_u8_32 *identity_id, Arr_u8_32 *request_id); +%rename(applicationSessionAuthenticationPrivateKeyFromSeed) platform_mobile_key_wallet_application_session_authentication_private_key_from_seed(bool is_testnet, Vec_u8 *seed, Arr_u8_32 *identity_id, Arr_u8_32 *request_id); +%rename(applicationEncryptionPrivateKeyFromSeed) platform_mobile_key_wallet_application_encryption_private_key_from_seed; +%newobject platform_mobile_key_wallet_application_session_authentication_private_key_from_seed; +%newobject platform_mobile_key_wallet_application_encryption_private_key_from_seed; + +%extend Result_ok_Vec_u8_err_String { + ~Result_ok_Vec_u8_err_String() { + if ($self->ok != nullptr) { + volatile uint8_t * bytes = $self->ok->values; + for (uintptr_t i = 0; i < $self->ok->count; ++i) bytes[i] = 0; + } + Result_ok_Vec_u8_err_String_destroy($self); + } +} diff --git a/dash-sdk-java/src/main/swig/root.i b/dash-sdk-java/src/main/swig/root.i index d4974764..f97c6325 100644 --- a/dash-sdk-java/src/main/swig/root.i +++ b/dash-sdk-java/src/main/swig/root.i @@ -10,6 +10,7 @@ #include #include "wrapper.h" #include "clone.h" +#include "identity_public_key_v1.h" #include #include MemoryFactory * MemoryFactory::instance = new MemoryFactory(); @@ -42,6 +43,7 @@ MemoryFactory & memoryFactory = *MemoryFactory::getInstance(); // Platform Related Structures %include "sdk.i" +%include "app_connect.i" %include "i128.i" %include "binary_data.i" %include "contract_bounds.i" @@ -56,6 +58,7 @@ MemoryFactory & memoryFactory = *MemoryFactory::getInstance(); %include "identity_public_key.i" %include "identity_public_key_enums.i" %include "keyid.i" +%include "key_wallet.i" %include "revision.i" %include "uint8_array.i" %include "uint8_array_20.i" diff --git a/dash-sdk-java/src/main/swig/sdk.i b/dash-sdk-java/src/main/swig/sdk.i index 85fac0ba..8b3d0d93 100644 --- a/dash-sdk-java/src/main/swig/sdk.i +++ b/dash-sdk-java/src/main/swig/sdk.i @@ -1,3 +1,28 @@ +// Transfer the successful opaque SDK handle without cloning or freeing it. +%typemap(jni) Result_ok_platform_mobile_sdk_DashSdk_err_String * "jlong" +%typemap(jtype) Result_ok_platform_mobile_sdk_DashSdk_err_String * "long" +%typemap(jstype) Result_ok_platform_mobile_sdk_DashSdk_err_String * "SWIGTYPE_p_DashSdk" +%typemap(javaout) Result_ok_platform_mobile_sdk_DashSdk_err_String * { + long cPtr = $jnicall; + return cPtr == 0 ? null : new SWIGTYPE_p_DashSdk(cPtr, true); +} +%typemap(out) Result_ok_platform_mobile_sdk_DashSdk_err_String * { + if (!$1) { + SWIG_JavaThrowException(jenv, SWIG_JavaRuntimeException, "Missing SDK construction result"); + $result = 0; + } else { + if ($1->error) { + SWIG_JavaThrowException(jenv, SWIG_JavaIllegalArgumentException, $1->error); + $result = 0; + } else { + $result = (jlong)$1->ok; + $1->ok = nullptr; + } + Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy($1); + } +} +%ignore Result_ok_platform_mobile_sdk_DashSdk_err_String; + %newobject platform_mobile_sdk_create_dash_sdk_with_context(uintptr_t context_provider_context, uint64_t quorum_public_key_callback, uint64_t data_contract_callback, @@ -19,4 +44,4 @@ FFI-representation of the [`platform_mobile :: sdk :: create_dash_sdk_using_sing %newobject platform_mobile_sdk_create_dash_sdk_using_single_evonode(char *evonode, uint64_t quorum_public_key_callback, uint64_t data_contract_callback, - bool is_testnet); \ No newline at end of file + bool is_testnet); diff --git a/dash-sdk-java/src/test/cpp/identity_public_key_v1_test.cpp b/dash-sdk-java/src/test/cpp/identity_public_key_v1_test.cpp new file mode 100644 index 00000000..86eb4b7d --- /dev/null +++ b/dash-sdk-java/src/test/cpp/identity_public_key_v1_test.cpp @@ -0,0 +1,26 @@ +#include "identity_public_key_v1.h" +#include +#include + +int main() { + // Nonzero trailing bytes make an accidental four-byte enum read fail deterministically. + std::array purpose {0, 0xce, 0xab, 0x0b}; + std::array security {2, 0x61, 0x63, 0x63}; + std::array type {2, 0xff, 0xee, 0xdd}; + dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 key {}; + key.purpose = purpose.data(); + key.security_level = security.data(); + key.key_type = type.data(); + for (uint8_t value = 0; value <= 6; ++value) { + purpose[0] = value; + assert(static_cast(identityPublicKeyV1Purpose(&key)) == value); + } + for (uint8_t value = 0; value <= 3; ++value) { + security[0] = value; + assert(static_cast(identityPublicKeyV1SecurityLevel(&key)) == value); + } + for (uint8_t value = 0; value <= 4; ++value) { + type[0] = value; + assert(static_cast(identityPublicKeyV1KeyType(&key)) == value); + } +} diff --git a/dash-sdk-java/src/test/java/org/dashj/platform/sdk/NetworkConfigurationTest.java b/dash-sdk-java/src/test/java/org/dashj/platform/sdk/NetworkConfigurationTest.java new file mode 100644 index 00000000..7cd2c399 --- /dev/null +++ b/dash-sdk-java/src/test/java/org/dashj/platform/sdk/NetworkConfigurationTest.java @@ -0,0 +1,57 @@ +package org.dashj.platform.sdk; + +import org.junit.Test; +import java.math.BigInteger; +import java.util.Collections; +import org.dashj.platform.sdk.callbacks.ContextProvider; +import static org.junit.Assert.*; + +public class NetworkConfigurationTest extends BaseTest { + @Test + public void createsAndDestroysExplicitNetworkClientsAcrossJni() throws Exception { + try (ContextProvider provider = new ContextProvider() { + @Override + public byte[] getQuorumPublicKey(int type, byte[] hash, int height) { + throw new AssertionError("Construction must not fetch quorum keys"); + } + @Override + public byte[] getDataContract(Identifier identifier) { + throw new AssertionError("Construction must not fetch contracts"); + } + }) { + for (String network : new String[]{"mainnet", "testnet", "devnet-sakura"}) { + // A truncated one-digit port becomes invalid, exposing JNI string-copy regressions. + for (String endpoint : new String[]{"https://127.0.0.1:1", "https://127.0.0.1:443", "https://127.0.0.1:1443"}) { + SWIGTYPE_p_DashSdk sdk = dashsdk.platformMobileSdkCreateDashSdkWithNetwork( + provider.getNativeContext(), BigInteger.valueOf(provider.getQuorumPublicKeyCallback()), + BigInteger.ZERO, network, Collections.singletonList(endpoint), 5, 5, 1); + assertNotNull(sdk); + try { + assertEquals(network.equals("devnet-sakura") ? 14L : 13L, + dashsdk.platformMobileSdkGetProtocolVersionWithSdk(sdk).unwrap().longValue()); + } finally { + dashsdk.platformMobileSdkDestroyDashSdk(sdk); + } + } + } + } + } + + @Test(expected = IllegalArgumentException.class) + public void rejectsEmptyEndpointsAcrossJni() { + dashsdk.platformMobileSdkCreateDashSdkWithNetwork(0, BigInteger.ZERO, BigInteger.ZERO, + "devnet-sakura", Collections.emptyList(), 5, 5, 1); + } + + @Test(expected = IllegalArgumentException.class) + public void rejectsInvalidNetworkAcrossJni() { + dashsdk.platformMobileSdkCreateDashSdkWithNetwork(0, BigInteger.ZERO, BigInteger.ZERO, + "sakura", Collections.singletonList("https://127.0.0.1:1443"), 5, 5, 1); + } + + @Test(expected = IllegalArgumentException.class) + public void rejectsMissingQuorumCallbackAcrossJni() { + dashsdk.platformMobileSdkCreateDashSdkWithNetwork(0, BigInteger.ZERO, BigInteger.ZERO, + "devnet-sakura", Collections.singletonList("https://127.0.0.1:1443"), 5, 5, 1); + } +} diff --git a/dpp/build.gradle b/dpp/build.gradle index d88c13ed..0c26d518 100644 --- a/dpp/build.gradle +++ b/dpp/build.gradle @@ -93,6 +93,10 @@ sourceSets { } } +tasks.named('compileKotlin').configure { + dependsOn tasks.named('generateProto') +} + test { useJUnitPlatform() systemProperty "java.library.path", "../dash-sdk-java/build/cmake" @@ -215,4 +219,4 @@ tasks.withType(io.gitlab.arturbosch.detekt.DetektCreateBaselineTask).configureEa assemble.dependsOn(publishToMavenLocal) assemble.dependsOn(sourcesJar) -// apply from: 'ktlint.gradle' \ No newline at end of file +// apply from: 'ktlint.gradle' diff --git a/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt b/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt index 7028e63f..877b8e79 100644 --- a/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt +++ b/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt @@ -69,7 +69,7 @@ import retrofit2.converter.gson.GsonConverterFactory import java.math.BigInteger import java.util.concurrent.TimeUnit -class DapiClient( +class DapiClient @JvmOverloads constructor( var dapiAddressListProvider: DAPIAddressListProvider, val dpp: DashPlatformProtocol, val useContextProvider: Boolean, @@ -78,6 +78,7 @@ class DapiClient( private var retries: Int = DEFAULT_RETRY_COUNT, private var banBaseTime: Int = DEFAULT_BASE_BAN_TIME, private var waitForNodes: Int = DEFAULT_WAIT_FOR_NODES, + val networkConfiguration: org.dashj.platform.sdk.client.NetworkConfiguration? = null, ) { // gRPC properties @@ -156,6 +157,14 @@ class DapiClient( var rustSdk: SWIGTYPE_p_DashSdk init { + networkConfiguration?.let { + it.validate(dpp.params) + require(isTestnet == (it.network != "mainnet")) { "Conflicting network selectors" } + dapiAddressListProvider = it.addressProvider(banBaseTime) + } + require(dpp.params !is DevNetParams || networkConfiguration != null) { + "Devnets require an explicit NetworkConfiguration; a testnet boolean cannot select a devnet" + } val loggingInterceptor = HttpLoggingInterceptor { msg: String? -> logger.info(msg) } loggingInterceptor.level = HttpLoggingInterceptor.Level.BODY @@ -176,7 +185,13 @@ class DapiClient( false } - rustSdk = dashsdk.platformMobileSdkCreateDashSdkWithContext( + rustSdk = if (networkConfiguration != null) { + dashsdk.platformMobileSdkCreateDashSdkWithNetwork( + contextProviderContext, BigInteger.valueOf(contextProviderFunction), BigInteger.ZERO, + networkConfiguration.network, networkConfiguration.endpoints, + timeOut * 2, timeOut, retries.toLong() + ) + } else dashsdk.platformMobileSdkCreateDashSdkWithContext( contextProviderContext, BigInteger.valueOf(contextProviderFunction), BigInteger.ZERO, @@ -494,11 +509,8 @@ class DapiClient( identityId.toNative() ) try { - return try { - Identity(result.unwrap().get()) - } catch (e: Exception) { - null - } + val identity = result.unwrap() + return if (identity.isPresent) Identity(identity.get()) else null } catch (e: Exception) { if (e.message?.contains("context provider error: invalid quorum: quorum not found") == true || e.message?.contains("invalid peer certificate: certificate expired") == true) { @@ -784,7 +796,7 @@ class DapiClient( retriesLeft // if called recursively } val address = dapiAddress ?: dapiAddressListProvider.getLiveAddress() - val allowSelfSignedCertificate = dpp.params is DevNetParams + val allowSelfSignedCertificate = dpp.params is DevNetParams && networkConfiguration == null val grpcMasternode = DAPIGrpcMasternode(address, timeOut, allowSelfSignedCertificate) lastUsedAddress = address @@ -1036,13 +1048,14 @@ class DapiClient( return dapiService } - val mnIP = dapiAddressListProvider.getLiveAddress().host + val address = dapiAddressListProvider.getLiveAddress() + val mnIP = address.host - logger.info("Connecting to GRPC host: $mnIP:${DAPIAddress.DEFAULT_JRPC_PORT}") + logger.info("Connecting to JSON-RPC host: $mnIP:${address.httpPort}") retrofit = Retrofit.Builder() .addConverterFactory(GsonConverterFactory.create()) - .baseUrl("https://$mnIP:${DAPIAddress.DEFAULT_JRPC_PORT}/") + .baseUrl(java.net.URI("https", null, mnIP, address.httpPort, "/", null, null).toString()) .client(if (debugJrpc) debugOkHttpClient else OkHttpClient()) .build() dapiService = retrofit.create(DapiService::class.java) @@ -1140,6 +1153,25 @@ class DapiClient( return dashsdk.platformMobileSdkGetProtocolVersionWithSdk(rustSdk).unwrap().toInt() } + /** A proof-verified group owner; null only when the group does not exist. */ + fun getContractGroupOwner(groupId: Identifier): Identifier? { + return dashsdk.fetchContractGroupOwnerWithSdk(rustSdk, groupId.toNative()) + .unwrap().map { Identifier.from(it) }.orElse(null) + } + + /** Fresh Platform block time in milliseconds, from a proof-verified identity query. */ + fun getPlatformTime(identityId: Identifier): Long { + return dashsdk.fetchPlatformTimeWithSdk(rustSdk, identityId.toNative()).unwrap() + } + + /** Null denotes no stored budget; callers should first verify the key exists. */ + fun getIdentityKeyRemainingBudget(identityId: Identifier, keyId: Int): java.math.BigInteger? { + val budget = dashsdk.fetchIdentityKeyRemainingBudgetWithSdk( + rustSdk, identityId.toNative(), keyId.toLong() and 0xffffffffL + ).unwrap() + return if (budget.has_remaining_budget) budget.remaining_budget else null + } + /** * Asks the network for the Platform protocol version it currently runs (a proven * getEpochsInfo query) and returns it. If the query fails, the highest version diff --git a/dpp/src/main/java/org/dashj/platform/dpp/contract/DataContract.kt b/dpp/src/main/java/org/dashj/platform/dpp/contract/DataContract.kt index b34bfd98..01657816 100644 --- a/dpp/src/main/java/org/dashj/platform/dpp/contract/DataContract.kt +++ b/dpp/src/main/java/org/dashj/platform/dpp/contract/DataContract.kt @@ -22,7 +22,9 @@ class DataContract( var version: Int, var schema: String, var documents: MutableMap, - var definitions: MutableMap = hashMapOf() + var definitions: MutableMap = hashMapOf(), + val requiresIdentityEncryptionBoundedKey: Boolean = false, + val requiresIdentityDecryptionBoundedKey: Boolean = false ) : BaseObject(protocolVersion) { companion object DEFAULTS { @@ -30,10 +32,12 @@ class DataContract( return DataContract( ProtocolVersion.latestVersion, Identifier.from(dataContract.id), - Identifier.from(dataContract.id), - 1, + Identifier.from(dataContract.owner_id), + dataContract.version.toInt(), "", - dataContract.doc_types.associateBy({it}, { "empty" }).toMutableMap() // dataContract.doc_types.keys() + dataContract.doc_types.associateBy({it}, { "empty" }).toMutableMap(), + requiresIdentityEncryptionBoundedKey = dataContract.requires_identity_encryption_bounded_key, + requiresIdentityDecryptionBoundedKey = dataContract.requires_identity_decryption_bounded_key //TODO: need List from Vec_String ) } diff --git a/dpp/src/main/java/org/dashj/platform/dpp/identity/ApplicationKeyDerivation.kt b/dpp/src/main/java/org/dashj/platform/dpp/identity/ApplicationKeyDerivation.kt new file mode 100644 index 00000000..8e19f971 --- /dev/null +++ b/dpp/src/main/java/org/dashj/platform/dpp/identity/ApplicationKeyDerivation.kt @@ -0,0 +1,34 @@ +package org.dashj.platform.dpp.identity + +import org.dashj.platform.sdk.Purpose +import org.dashj.platform.sdk.Result_ok_Vec_u8_err_String +import org.dashj.platform.sdk.dashsdk + +/** DIP-13 application keys. Testnet and all devnets use the non-mainnet coin type. */ +object ApplicationKeyDerivation { + /** The caller supplies the request leaf (v2: hash256(appEphPub || bindingIndex)). */ + fun sessionAuthentication( + seed: ByteArray, identityId: ByteArray, requestLeaf: ByteArray, isMainnet: Boolean + ): ByteArray = privateKey(dashsdk.applicationSessionAuthenticationPrivateKeyFromSeed( + !isMainnet, seed, identityId, requestLeaf + )) + + /** Rotation-zero key for ENCRYPTION or DECRYPTION, bound to the app contract. */ + fun encryption( + seed: ByteArray, identityId: ByteArray, contractId: ByteArray, purpose: Purpose, isMainnet: Boolean + ): ByteArray { + require(purpose == Purpose.ENCRYPTION || purpose == Purpose.DECRYPTION) + return privateKey(dashsdk.applicationEncryptionPrivateKeyFromSeed( + !isMainnet, seed, identityId, contractId, purpose.swigValue().toLong() + )) + } + + private fun privateKey(result: Result_ok_Vec_u8_err_String): ByteArray { + try { + check(result.error == null) { "Application key derivation failed: ${result.error}" } + return checkNotNull(result.ok).also { check(it.size == 32) } + } finally { + result.delete() + } + } +} diff --git a/dpp/src/main/java/org/dashj/platform/dpp/identity/ContractBounds.kt b/dpp/src/main/java/org/dashj/platform/dpp/identity/ContractBounds.kt index d345f1ac..0b208130 100644 --- a/dpp/src/main/java/org/dashj/platform/dpp/identity/ContractBounds.kt +++ b/dpp/src/main/java/org/dashj/platform/dpp/identity/ContractBounds.kt @@ -14,6 +14,9 @@ abstract class ContractBounds(val type: String, val identifier: Identifier) Identifier(rustContractBounds.single_contract_document_type.id), rustContractBounds.single_contract_document_type.document_type_name ) + org.dashj.platform.sdk.ContractBounds.Tag.ContractGroup -> ContractGroupBounds( + Identifier(rustContractBounds.contract_group.id) + ) else -> error("Unknown ContractBounds tag: ${rustContractBounds.tag}") } } @@ -30,6 +33,7 @@ abstract class ContractBounds(val type: String, val identifier: Identifier) val identifier = Identifier.from(rawContractBounds["identifier"]) return when (val type = rawContractBounds["type"]) { "singleContract" -> SingleContractBounds(identifier) + "contractGroup" -> ContractGroupBounds(identifier) "documentType" -> SingleContractDocumentType( identifier, rawContractBounds["documentType"] as String @@ -63,6 +67,10 @@ class SingleContractBounds(identifier: Identifier) : ContractBounds("singleContr } } +class ContractGroupBounds(identifier: Identifier) : ContractBounds("contractGroup", identifier) { + override fun toNative(): RustContractBounds = RustContractBounds.forContractGroup(identifier.toNative()) +} + class SingleContractDocumentType(identifier: Identifier, val documentType: String) : ContractBounds("documentType", identifier) { override fun toNative(): RustContractBounds { @@ -80,4 +88,4 @@ class SingleContractDocumentType(identifier: Identifier, val documentType: Strin map["documentType"] = documentType return map } -} \ No newline at end of file +} diff --git a/dpp/src/main/java/org/dashj/platform/dpp/identity/Identity.kt b/dpp/src/main/java/org/dashj/platform/dpp/identity/Identity.kt index 85b9e866..a889721d 100644 --- a/dpp/src/main/java/org/dashj/platform/dpp/identity/Identity.kt +++ b/dpp/src/main/java/org/dashj/platform/dpp/identity/Identity.kt @@ -47,13 +47,16 @@ class Identity : BaseObject { } constructor(identity: RustIdentity) : super() { - when (identity.tag) { - Identity.Tag.V0 -> { - val identity = identity.v0._0 - id = Identifier(identity.id) - publicKeys = identity.publicKeys.values.map { IdentityPublicKey.from(it) }.toMutableList() - revision = identity.revision.toLong().toInt() - balance = identity.balance + // SWIG child views borrow their memory from this owning identity. + synchronized(identity) { + when (identity.tag) { + Identity.Tag.V0 -> { + val value = identity.v0._0 + id = Identifier(value.id) + publicKeys = value.publicKeys.values.map { IdentityPublicKey.from(it) }.toMutableList() + revision = value.revision.toLong().toInt() + balance = value.balance + } } } } diff --git a/dpp/src/main/java/org/dashj/platform/dpp/identity/IdentityPublicKey.kt b/dpp/src/main/java/org/dashj/platform/dpp/identity/IdentityPublicKey.kt index d2af4e57..f4806883 100644 --- a/dpp/src/main/java/org/dashj/platform/dpp/identity/IdentityPublicKey.kt +++ b/dpp/src/main/java/org/dashj/platform/dpp/identity/IdentityPublicKey.kt @@ -14,6 +14,7 @@ import org.dashj.platform.dpp.identity.errors.EmptyPublicKeyDataException import org.dashj.platform.dpp.toBase64 import org.dashj.platform.dpp.util.Converters import org.dashj.platform.sdk.* +import java.math.BigInteger typealias RustIdentityPublicKey = org.dashj.platform.sdk.IdentityPublicKey @@ -36,7 +37,17 @@ class IdentityPublicKey( val readOnly: Boolean, var disabledAt: Long? = null, var signature: ByteArray? = null, + val totalBudget: BigInteger? = null, + val expiresAt: Long? = null, + val version: Int = if (totalBudget != null || expiresAt != null) 1 else 0, ) : BaseObject() { + init { + require(version in 0..1) { "Unsupported identity public key version: $version" } + require(version == 1 || (totalBudget == null && expiresAt == null)) { "Key limits require V1" } + require(totalBudget == null || (totalBudget.signum() >= 0 && totalBudget.bitLength() <= 64)) { + "Budget must fit an unsigned 64-bit value" + } + } // enum class Type(val value: Int) { // ECDSA_SECP256K1(0), @@ -104,21 +115,33 @@ class IdentityPublicKey( ) fun from(identityPublicKey: RustIdentityPublicKey) : IdentityPublicKey { - return when (identityPublicKey.tag) { - org.dashj.platform.sdk.IdentityPublicKey.Tag.V0 -> { - val ipk = identityPublicKey.v0._0 - IdentityPublicKey( - ipk.id.toInt(), - ipk.keyType, - ipk.purpose, - ipk.securityLevel, - ContractBounds.tryFrom(ipk.contract_bounds), - ipk.data._0, - ipk.read_only, - ipk.disabled_at?.toLong() - ) + // Keep the owning key alive while reading its borrowed SWIG fields. + return synchronized(identityPublicKey) { + when (identityPublicKey.tag) { + org.dashj.platform.sdk.IdentityPublicKey.Tag.V0 -> { + val ipk = identityPublicKey.v0._0 + IdentityPublicKey( + ipk.id.toInt(), + ipk.keyType, + ipk.purpose, + ipk.securityLevel, + ContractBounds.tryFrom(ipk.contract_bounds), + ipk.data._0, + ipk.read_only, + ipk.disabled_at?.toLong() + ) + } + org.dashj.platform.sdk.IdentityPublicKey.Tag.V1 -> { + val ipk = identityPublicKey.v1._0 + IdentityPublicKey( + ipk.id.toInt(), ipk.keyType, ipk.purpose, ipk.securityLevel, + ContractBounds.tryFrom(ipk.contract_bounds), ipk.data._0, ipk.read_only, + ipk.disabled_at?.toLong(), totalBudget = ipk.total_budget?.toBigInteger(), + expiresAt = ipk.expires_at?.toLong(), version = 1 + ) + } + else -> error("Unsupported identity public key tag: ${identityPublicKey.tag}") } - else -> error("Identity ") } } } @@ -166,7 +189,12 @@ class IdentityPublicKey( when (rawIdentityPublicKey["readOnly"]) { is Boolean -> rawIdentityPublicKey["readOnly"] as Boolean else -> false - } + }, + disabledAt = (rawIdentityPublicKey["disabledAt"] as? Number)?.toLong(), + totalBudget = rawIdentityPublicKey["totalBudget"]?.toString()?.let { BigInteger(it) }, + expiresAt = (rawIdentityPublicKey["expiresAt"] as? Number)?.toLong(), + version = (rawIdentityPublicKey["version"] as? Number)?.toInt() + ?: if (rawIdentityPublicKey["totalBudget"] != null || rawIdentityPublicKey["expiresAt"] != null) 1 else 0 ) { signature = when (rawIdentityPublicKey["signature"]) { is String -> Converters.fromBase64(rawIdentityPublicKey["signature"] as String) @@ -191,6 +219,9 @@ class IdentityPublicKey( disabledAt?.run { objMap.put("disabledAt", this) } + if (version == 1) objMap["version"] = version + totalBudget?.let { objMap["totalBudget"] = it } + expiresAt?.let { objMap["expiresAt"] = it } contractBounds?.run { objMap.put("contractBounds", this.toObject()) } @@ -213,6 +244,13 @@ class IdentityPublicKey( } fun toNative(): RustIdentityPublicKey { + if (version == 1) { + return RustIdentityPublicKey(IdentityPublicKeyV1( + KeyID(id), purpose, securityLevel, contractBounds?.toNative(), type, readOnly, + BinaryData(data), disabledAt?.let { TimestampMillis(it) }, + totalBudget?.let { Credits.fromBigInteger(it) }, expiresAt?.let { TimestampMillis(it) } + )) + } return RustIdentityPublicKey( IdentityPublicKeyV0( KeyID(id), @@ -267,7 +305,8 @@ class IdentityPublicKey( } fun copy(skipSignature: Boolean): IdentityPublicKey { - return IdentityPublicKey(id, type, purpose, securityLevel, contractBounds, data, readOnly, disabledAt, if (skipSignature) null else signature) + return IdentityPublicKey(id, type, purpose, securityLevel, contractBounds, data, readOnly, disabledAt, + if (skipSignature) null else signature, totalBudget, expiresAt, version) } fun validate() { diff --git a/dpp/src/main/java/org/dashj/platform/dpp/util/Cbor.kt b/dpp/src/main/java/org/dashj/platform/dpp/util/Cbor.kt index b41630e1..7ba24aab 100644 --- a/dpp/src/main/java/org/dashj/platform/dpp/util/Cbor.kt +++ b/dpp/src/main/java/org/dashj/platform/dpp/util/Cbor.kt @@ -175,7 +175,7 @@ object Cbor { is String -> mapBuilder.put(key, value) is Boolean -> mapBuilder.put(key, value) is Int -> mapBuilder.put(key, value.toLong()) - is BigInteger -> mapBuilder.put(key, value.toLong()) + is BigInteger -> mapBuilder.put(UnicodeString(key), integerItem(value)) is Float -> mapBuilder.put(key, value) is Long -> mapBuilder.put(key, value) is Double -> mapBuilder.put(key, value) @@ -192,7 +192,7 @@ object Cbor { is String -> arrayBuilder.add(value) is Boolean -> arrayBuilder.add(value) is Int -> arrayBuilder.add(value.toLong()) - is BigInteger -> arrayBuilder.add(value.toLong()) + is BigInteger -> arrayBuilder.add(integerItem(value)) is Float -> arrayBuilder.add(value) is Long -> arrayBuilder.add(value) is Double -> arrayBuilder.add(value) @@ -237,25 +237,22 @@ object Cbor { return resultList } + private fun integerItem(value: BigInteger): DataItem = + if (value.signum() < 0) NegativeInteger(value) else UnsignedInteger(value) + + private fun integerValue(value: BigInteger): Number = when { + value.bitLength() <= 31 -> value.toInt() + value.bitLength() <= 63 -> value.toLong() + else -> value + } + private fun addValueFromCborMap(map: HashMap, key: String, value: DataItem) { when (value) { is UnicodeString -> { map[key] = value.string } - is NegativeInteger -> { - if (value.value.toLong() >= Int.MIN_VALUE) { - map[key] = value.value.toInt() - } else { - map[key] = value.value.toLong() - } - } - is UnsignedInteger -> { - if (value.value.toLong() <= Int.MAX_VALUE) { - map[key] = value.value.toInt() - } else { - map[key] = value.value.toLong() - } - } + is NegativeInteger -> map[key] = integerValue(value.value) + is UnsignedInteger -> map[key] = integerValue(value.value) is HalfPrecisionFloat -> map[key] = value.value is DoublePrecisionFloat -> map[key] = value.value is ByteString -> map[key] = value.bytes @@ -275,20 +272,8 @@ object Cbor { private fun addValueFromCborArray(value: DataItem, array: ArrayList) { when (value) { is UnicodeString -> array.add(value.string) - is NegativeInteger -> { - if (value.value.toLong() >= Int.MIN_VALUE) { - array.add(value.value.toLong().toInt()) - } else { - array.add(value.value.toLong()) - } - } - is UnsignedInteger -> { - if (value.value.toLong() <= Int.MAX_VALUE) { - array.add(value.value.toLong().toInt()) - } else { - array.add(value.value.toLong()) - } - } + is NegativeInteger -> array.add(integerValue(value.value)) + is UnsignedInteger -> array.add(integerValue(value.value)) is HalfPrecisionFloat -> array.add(value.value) is DoublePrecisionFloat -> array.add(value.value) is ByteString -> array.add(value.bytes) diff --git a/dpp/src/main/java/org/dashj/platform/sdk/Client.kt b/dpp/src/main/java/org/dashj/platform/sdk/Client.kt index 7feb6a22..1c085542 100644 --- a/dpp/src/main/java/org/dashj/platform/sdk/Client.kt +++ b/dpp/src/main/java/org/dashj/platform/sdk/Client.kt @@ -23,13 +23,13 @@ import org.dashj.platform.sdk.client.ClientOptions import org.dashj.platform.sdk.platform.Platform class Client(private val clientOptions: ClientOptions) { - val params = when (clientOptions.network) { + val params = clientOptions.networkParameters ?: when (clientOptions.network) { "testnet" -> TestNet3Params.get() "bintang" -> BinTangDevNetParams.get() "mainnet" -> MainNetParams.get() else -> throw IllegalArgumentException("network ${clientOptions.network} is not valid") } - val platform = Platform(params) + val platform = Platform(params, clientOptions.networkConfiguration) val dapiClient: DapiClient get() = platform.client @@ -81,6 +81,12 @@ class Client(private val clientOptions: ClientOptions) { // Create the DapiClient with parameters val isTestnet = params.id != MainNetParams.ID_MAINNET platform.client = when { + clientOptions.networkConfiguration != null -> { + val config = clientOptions.networkConfiguration + DapiClient(config.addressProvider(clientOptions.banBaseTime), platform.dpp, true, isTestnet, + clientOptions.timeout, clientOptions.retries, clientOptions.banBaseTime, + networkConfiguration = config) + } clientOptions.dapiAddressListProvider != null -> { DapiClient(clientOptions.dapiAddressListProvider, platform.dpp, true, isTestnet, clientOptions.timeout, clientOptions.retries, clientOptions.banBaseTime) } diff --git a/dpp/src/main/java/org/dashj/platform/sdk/client/ClientOptions.kt b/dpp/src/main/java/org/dashj/platform/sdk/client/ClientOptions.kt index e9b1ae7a..93c50c67 100644 --- a/dpp/src/main/java/org/dashj/platform/sdk/client/ClientOptions.kt +++ b/dpp/src/main/java/org/dashj/platform/sdk/client/ClientOptions.kt @@ -19,8 +19,20 @@ class ClientOptions( val dapiAddresses: List = listOf(), val timeout: Long = DapiClient.DEFAULT_TIMEOUT, val retries: Int = DapiClient.DEFAULT_RETRY_COUNT, - val banBaseTime: Int = DapiClient.DEFAULT_BASE_BAN_TIME + val banBaseTime: Int = DapiClient.DEFAULT_BASE_BAN_TIME, + val networkConfiguration: NetworkConfiguration? = null, + val networkParameters: org.bitcoinj.core.NetworkParameters? = null ) { + init { + networkConfiguration?.let { + require(network == it.network) { "Conflicting network configuration" } + require(networkParameters != null) { "Explicit network configuration requires Core network parameters" } + it.validate(networkParameters) + require(dapiAddressListProvider == null && dapiAddresses.isEmpty()) { + "Specify endpoints in NetworkConfiguration, not in two separate node lists" + } + } + } constructor(network: String) : this(mapOf(), null, 0, network = network) data class Builder( @@ -33,7 +45,9 @@ class ClientOptions( private val dapiAddresses: ArrayList = arrayListOf(), private var timeout: Long = DapiClient.DEFAULT_TIMEOUT, private var retries: Int = DapiClient.DEFAULT_RETRY_COUNT, - private var banBaseTime: Int = DapiClient.DEFAULT_BASE_BAN_TIME + private var banBaseTime: Int = DapiClient.DEFAULT_BASE_BAN_TIME, + private var networkConfiguration: NetworkConfiguration? = null, + private var networkParameters: org.bitcoinj.core.NetworkParameters? = null ) { fun app(name: String, definition: ClientAppDefinition) = apply { apps[name] = definition @@ -52,6 +66,15 @@ class ClientOptions( } fun network(network: String) = apply { this.network = network + networkConfiguration = null + networkParameters = null + } + /** Use network-specific Core parameters without guessing devnet spork or quorum settings. */ + fun network(configuration: NetworkConfiguration, params: org.bitcoinj.core.NetworkParameters) = apply { + configuration.validate(params) + network = configuration.network + networkConfiguration = configuration + networkParameters = params } fun seed(seed: String) = apply { this.seeds.add(seed) @@ -78,7 +101,7 @@ class ClientOptions( this.banBaseTime = banBaseTime } fun build(): ClientOptions { - return ClientOptions(apps, walletOptions, walletAccountIndex, network, seeds, dapiAddressListProvider, dapiAddresses, timeout, retries, banBaseTime) + return ClientOptions(apps, walletOptions, walletAccountIndex, network, seeds, dapiAddressListProvider, dapiAddresses, timeout, retries, banBaseTime, networkConfiguration, networkParameters) } } companion object { diff --git a/dpp/src/main/java/org/dashj/platform/sdk/client/NetworkConfiguration.kt b/dpp/src/main/java/org/dashj/platform/sdk/client/NetworkConfiguration.kt new file mode 100644 index 00000000..f67ef777 --- /dev/null +++ b/dpp/src/main/java/org/dashj/platform/sdk/client/NetworkConfiguration.kt @@ -0,0 +1,53 @@ +package org.dashj.platform.sdk.client + +import org.bitcoinj.core.NetworkParameters +import org.bitcoinj.core.Sha256Hash +import org.bitcoinj.params.DevNetParams +import org.dashj.platform.dapiclient.provider.DAPIAddress +import org.dashj.platform.dapiclient.provider.ListDAPIAddressProvider +import java.net.URI + +/** Explicit network identity and HTTPS endpoints, shared by the Kotlin and native clients. */ +class NetworkConfiguration(val network: String, endpoints: List) { + val endpoints: List = java.util.Collections.unmodifiableList(endpoints.toList()) + + init { + require(network == "mainnet" || network == "testnet" || network.matches(Regex("devnet-[A-Za-z0-9-]+"))) { + "Expected mainnet, testnet, or devnet-" + } + require(this.endpoints.isNotEmpty()) { "At least one DAPI endpoint is required" } + this.endpoints.forEach { + val uri = URI(it) + require(uri.scheme == "https" && !uri.host.isNullOrBlank() && uri.port in 1..65535 && + uri.userInfo == null && (uri.path.isNullOrEmpty() || uri.path == "/") && + uri.query == null && uri.fragment == null) { + "DAPI endpoints must be HTTPS URLs with an explicit port and no credentials, path, query or fragment" + } + } + } + + fun validate(params: NetworkParameters) { + val expected = when { + params is DevNetParams -> params.devNetName + params.id == NetworkParameters.ID_MAINNET -> "mainnet" + params.id == NetworkParameters.ID_TESTNET -> "testnet" + else -> throw IllegalArgumentException("Unsupported Core network: ${params.id}") + } + require(network == expected) { "Platform network $network does not match Core network $expected" } + } + + internal fun addressProvider(banBaseTime: Int) = ListDAPIAddressProvider(endpoints.map { + val uri = URI(it) + DAPIAddress(uri.host.removePrefix("[").removeSuffix("]"), uri.port, uri.port, Sha256Hash.ZERO_HASH) + }, banBaseTime) + + companion object { + /** Validator endpoints advertised by the Sakura dashboard, verified 2026-10-09. */ + @JvmStatic + fun sakura() = NetworkConfiguration("devnet-sakura", listOf( + "68.67.122.86", "68.67.122.87", "68.67.122.240", "68.67.122.241", + "68.67.122.88", "68.67.122.89", "68.67.122.90", "68.67.122.91", + "68.67.122.92", "68.67.122.93", "68.67.122.94", "68.67.122.95", "68.67.122.232" + ).map { "https://$it:1443" }) + } +} diff --git a/dpp/src/main/java/org/dashj/platform/sdk/platform/Platform.kt b/dpp/src/main/java/org/dashj/platform/sdk/platform/Platform.kt index 619e14b8..caa6636d 100644 --- a/dpp/src/main/java/org/dashj/platform/sdk/platform/Platform.kt +++ b/dpp/src/main/java/org/dashj/platform/sdk/platform/Platform.kt @@ -30,7 +30,10 @@ import org.dashj.platform.sdk.client.ClientAppDefinition import org.slf4j.Logger import org.slf4j.LoggerFactory -class Platform(val params: NetworkParameters) { +class Platform @JvmOverloads constructor( + val params: NetworkParameters, + val networkConfiguration: org.dashj.platform.sdk.client.NetworkConfiguration? = null +) { companion object { private val log: Logger = LoggerFactory.getLogger(Platform::class.java) @@ -91,7 +94,10 @@ class Platform(val params: NetworkParameters) { } } System.loadLibrary("sdklib") - client = DapiClient(params.defaultHPMasternodeList.toList(), dpp, true, isTestNet()) + client = if (networkConfiguration != null) { + DapiClient(networkConfiguration.addressProvider(DapiClient.DEFAULT_BASE_BAN_TIME), dpp, + true, isTestNet(), networkConfiguration = networkConfiguration) + } else DapiClient(params.defaultHPMasternodeList.toList(), dpp, true, isTestNet()) } fun getAppList(): List { diff --git a/dpp/src/test/kotlin/org/dashj/platform/dpp/identity/AppConnectKeyTest.kt b/dpp/src/test/kotlin/org/dashj/platform/dpp/identity/AppConnectKeyTest.kt new file mode 100644 index 00000000..c776d58d --- /dev/null +++ b/dpp/src/test/kotlin/org/dashj/platform/dpp/identity/AppConnectKeyTest.kt @@ -0,0 +1,99 @@ +package org.dashj.platform.dpp.identity + +import org.dashj.platform.dpp.identifier.Identifier +import org.dashj.platform.dpp.util.Cbor +import org.dashj.platform.sdk.KeyType +import org.dashj.platform.sdk.Purpose +import org.dashj.platform.sdk.SecurityLevel +import org.junit.jupiter.api.Assertions.* +import org.junit.jupiter.api.Test +import java.math.BigInteger + +class AppConnectKeyTest { + companion object { + init { System.loadLibrary("sdklib") } + } + + private val id = Identifier(ByteArray(32) { 7 }) + private val maxBudget = BigInteger.ONE.shiftLeft(64).subtract(BigInteger.ONE) + + private fun key(bounds: ContractBounds?, version: Int = 1, budget: BigInteger? = maxBudget) = + IdentityPublicKey(7, KeyType.ECDSA_HASH160, Purpose.AUTHENTICATION, SecurityLevel.HIGH, + bounds, ByteArray(20) { 3 }, false, disabledAt = 123L, + totalBudget = budget, expiresAt = if (budget == null) null else 1_900_000_000_000L, + version = version) + + @Test + fun nativeRoundTripPreservesAllV1BoundsAndUnsignedLimits() { + for (bounds in listOf(SingleContractBounds(id), SingleContractDocumentType(id, "profile"), ContractGroupBounds(id))) { + val original = key(bounds) + val restored = IdentityPublicKey.from(original.toNative()) + assertEquals(original.id, restored.id) + assertEquals(original.type, restored.type) + assertEquals(original.purpose, restored.purpose) + assertEquals(original.securityLevel, restored.securityLevel) + assertEquals(original.contractBounds?.toJSON(), restored.contractBounds?.toJSON()) + assertEquals(maxBudget, restored.totalBudget) + assertEquals(original.expiresAt, restored.expiresAt) + assertEquals(123L, restored.disabledAt) + assertArrayEquals(original.data, restored.data) + } + } + + @Test + fun nativeRoundTripKeepsVersionEvenWithoutLimits() { + for (version in 0..1) { + val restored = IdentityPublicKey.from(key(null, version, null).toNative()) + assertEquals(version, restored.version) + assertNull(restored.totalBudget) + assertNull(restored.expiresAt) + } + } + + @Test + fun persistenceAndCopyKeepLimitsAndGroupBounds() { + val original = key(ContractGroupBounds(id)) + val fromObject = IdentityPublicKey(original.toObject()) + val fromJson = IdentityPublicKey(original.toJSON()) + val fromCbor = IdentityPublicKey(Cbor.decode(Cbor.encode(original.toObject()))) + for (restored in listOf(fromObject, fromJson, fromCbor, original.copy(true))) { + assertEquals(maxBudget, restored.totalBudget) + assertEquals(original.expiresAt, restored.expiresAt) + assertEquals(original.version, restored.version) + assertEquals(original.contractBounds?.toJSON(), restored.contractBounds?.toJSON()) + } + assertEquals(listOf(maxBudget), Cbor.decodeList(Cbor.encode(listOf(maxBudget)))) + } + + @Test + fun refusesBudgetsOutsideTheWireRange() { + assertThrows(IllegalArgumentException::class.java) { key(null, budget = BigInteger.valueOf(-1)) } + assertThrows(IllegalArgumentException::class.java) { key(null, budget = BigInteger.ONE.shiftLeft(64)) } + assertThrows(IllegalArgumentException::class.java) { key(null, version = 0) } + } + + @Test + fun derivationSeparatesDomainsAndDoesNotModifyTheSeed() { + val seed = ByteArray(32) { 42 } + val originalSeed = seed.copyOf() + val identityId = ByteArray(32) { 1 } + val contractId = ByteArray(32) { 2 } + val encryption = ApplicationKeyDerivation.encryption( + seed, identityId, contractId, Purpose.ENCRYPTION, false + ) + assertEquals(32, encryption.size) + assertArrayEquals(encryption, ApplicationKeyDerivation.encryption( + seed, identityId, contractId, Purpose.ENCRYPTION, false + )) + assertFalse(encryption.contentEquals(ApplicationKeyDerivation.encryption( + seed, identityId, contractId, Purpose.DECRYPTION, false + ))) + assertFalse(encryption.contentEquals(ApplicationKeyDerivation.encryption( + seed, identityId, contractId, Purpose.ENCRYPTION, true + ))) + assertFalse(encryption.contentEquals(ApplicationKeyDerivation.sessionAuthentication( + seed, identityId, contractId, false + ))) + assertArrayEquals(originalSeed, seed) + } +} diff --git a/dpp/src/test/kotlin/org/dashj/platform/dpp/identity/IdentityNativeReadbackTest.kt b/dpp/src/test/kotlin/org/dashj/platform/dpp/identity/IdentityNativeReadbackTest.kt new file mode 100644 index 00000000..e561aa15 --- /dev/null +++ b/dpp/src/test/kotlin/org/dashj/platform/dpp/identity/IdentityNativeReadbackTest.kt @@ -0,0 +1,80 @@ +package org.dashj.platform.dpp.identity + +import org.dashj.platform.dpp.identifier.Identifier +import org.dashj.platform.sdk.KeyType +import org.dashj.platform.sdk.Purpose +import org.dashj.platform.sdk.SecurityLevel +import org.junit.jupiter.api.Assertions.assertArrayEquals +import org.junit.jupiter.api.Assertions.assertEquals +import org.junit.jupiter.api.Test +import java.math.BigInteger +import java.util.concurrent.atomic.AtomicBoolean + +class IdentityNativeReadbackTest { + companion object { + init { System.loadLibrary("sdklib") } + } + + private fun keys(): List = listOf( + IdentityPublicKey(0, KeyType.ECDSA_SECP256K1, Purpose.AUTHENTICATION, + SecurityLevel.MASTER, null, ByteArray(33) { 2 }, false), + IdentityPublicKey(4, KeyType.ECDSA_HASH160, Purpose.AUTHENTICATION, + SecurityLevel.HIGH, ContractGroupBounds(Identifier(ByteArray(32) { 3 })), + ByteArray(20) { 4 }, false, totalBudget = BigInteger("5000000000"), + expiresAt = 1_800_000_000_000L), + IdentityPublicKey(5, KeyType.ECDSA_HASH160, Purpose.AUTHENTICATION, + SecurityLevel.HIGH, SingleContractBounds(Identifier(ByteArray(32) { 5 })), + ByteArray(20) { 6 }, false, totalBudget = BigInteger("18446744073709551615"), + expiresAt = 1_800_000_000_001L) + ) + + private fun assertKeys(expected: List, actual: List) { + assertEquals(expected.size, actual.size) + expected.forEach { key -> + val restored = actual.single { it.id == key.id } + assertEquals(key.version, restored.version) + assertEquals(key.purpose, restored.purpose) + assertEquals(key.type, restored.type) + assertEquals(key.securityLevel, restored.securityLevel) + assertEquals(key.contractBounds?.toObject(), restored.contractBounds?.toObject()) + assertEquals(key.totalBudget, restored.totalBudget) + assertEquals(key.expiresAt, restored.expiresAt) + assertArrayEquals(key.data, restored.data) + } + } + + @Test + fun readsMixedVersionIdentityUnderGarbageCollection() { + val expected = keys() + val original = Identity(Identifier(ByteArray(32) { 7 }), expected, 0, 2, 1) + val running = AtomicBoolean(true) + val collector = Thread { + while (running.get()) { + System.gc() + Thread.sleep(2) + } + } + collector.start() + try { + repeat(200) { + val restored = Identity(original.toNative()) + assertEquals(original.id, restored.id) + assertEquals(original.revision, restored.revision) + assertKeys(expected, restored.publicKeys) + } + } finally { + running.set(false) + collector.join() + } + } + + @Test + fun readsStandaloneV1KeyUnderGarbageCollection() { + val key = keys()[1] + repeat(100) { + val native = key.toNative() + System.gc() + assertKeys(listOf(key), listOf(IdentityPublicKey.from(native))) + } + } +} diff --git a/dpp/src/test/kotlin/org/dashj/platform/sdk/client/NetworkConfigurationTest.kt b/dpp/src/test/kotlin/org/dashj/platform/sdk/client/NetworkConfigurationTest.kt new file mode 100644 index 00000000..44f50904 --- /dev/null +++ b/dpp/src/test/kotlin/org/dashj/platform/sdk/client/NetworkConfigurationTest.kt @@ -0,0 +1,74 @@ +package org.dashj.platform.sdk.client + +import org.bitcoinj.params.MainNetParams +import org.bitcoinj.params.TestNet3Params +import org.junit.jupiter.api.Assertions.* +import org.junit.jupiter.api.Test + +class NetworkConfigurationTest { + @Test + fun endpointsAreAnImmutableSnapshot() { + val endpoints = mutableListOf("https://127.0.0.1:1443") + val config = NetworkConfiguration("devnet-sakura", endpoints) + endpoints.clear() + assertEquals(1, config.endpoints.size) + assertThrows(UnsupportedOperationException::class.java) { + (config.endpoints as MutableList).clear() + } + } + + @Test + fun rejectsConflictingNodeSourcesBeforeConstructingClient() { + val config = NetworkConfiguration("testnet", listOf("https://127.0.0.1:1443")) + assertThrows(IllegalArgumentException::class.java) { + ClientOptions.builder().network(config, TestNet3Params.get()) + .dapiAddress("127.0.0.2").build() + } + } + + @Test + fun legacyNetworkSelectionClearsExplicitConfiguration() { + val config = NetworkConfiguration("testnet", listOf("https://127.0.0.1:1443")) + val options = ClientOptions.builder().network(config, TestNet3Params.get()).network("mainnet").build() + assertEquals("mainnet", options.network) + assertNull(options.networkConfiguration) + assertNull(options.networkParameters) + } + + @Test + fun sakuraUsesOnlyItsAdvertisedValidators() { + val config = NetworkConfiguration.sakura() + assertEquals("devnet-sakura", config.network) + assertEquals(13, config.endpoints.size) + val addresses = config.addressProvider(10).toList() + assertTrue(addresses.all { it.grpcPort == 1443 && it.httpPort == 1443 }) + assertEquals("68.67.122.86", addresses.first().host) + assertFalse(addresses.any { it.host == "68.67.122.1" }) + } + + @Test + fun explicitPortsArePreserved() { + val config = NetworkConfiguration("mainnet", listOf("https://127.0.0.1:443")) + config.validate(MainNetParams.get()) + assertEquals(443, config.addressProvider(10).toList().single().grpcPort) + } + + @Test + fun rejectsCoreNetworkMismatch() { + assertThrows(IllegalArgumentException::class.java) { + NetworkConfiguration.sakura().validate(TestNet3Params.get()) + } + } + + @Test + fun rejectsInvalidEndpoints() { + for (endpoint in listOf("127.0.0.1", "http://127.0.0.1:1443", "https://127.0.0.1", + "https://127.0.0.1:0", "https://user@127.0.0.1:1443", "https://127.0.0.1:1443/path", + "https://127.0.0.1:1443?x=y", "https://127.0.0.1:1443#fragment")) { + try { + NetworkConfiguration("devnet-sakura", listOf(endpoint)) + fail("Accepted $endpoint") + } catch (_: IllegalArgumentException) { } + } + } +} diff --git a/platform-mobile/Cargo.lock b/platform-mobile/Cargo.lock index 903b8146..49ddcf39 100644 --- a/platform-mobile/Cargo.lock +++ b/platform-mobile/Cargo.lock @@ -127,7 +127,7 @@ checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" [[package]] name = "app-connect-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -777,7 +777,7 @@ dependencies = [ [[package]] name = "dapi-grpc" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "dash-platform-macros", "futures-core", @@ -830,7 +830,7 @@ dependencies = [ [[package]] name = "dash-async" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "futures", "thiserror 2.0.18", @@ -841,7 +841,7 @@ dependencies = [ [[package]] name = "dash-context-provider" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "dash-async", "dpp", @@ -865,7 +865,7 @@ dependencies = [ [[package]] name = "dash-network" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "cbindgen 0.29.4", "grovedb-bincode", @@ -876,14 +876,14 @@ dependencies = [ [[package]] name = "dash-network-seeds" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "dash-network 0.45.0", ] [[package]] name = "dash-platform-macros" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "heck 0.5.0", "quote", @@ -892,7 +892,7 @@ dependencies = [ [[package]] name = "dash-platform-queries" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -909,7 +909,7 @@ dependencies = [ [[package]] name = "dash-sdk" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "arc-swap", "async-trait", @@ -974,7 +974,7 @@ dependencies = [ [[package]] name = "dashcore" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "anyhow", "base64-compat", @@ -1005,7 +1005,7 @@ source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277 [[package]] name = "dashcore-private" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" [[package]] name = "dashcore-rpc" @@ -1023,7 +1023,7 @@ dependencies = [ [[package]] name = "dashcore-rpc" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "dashcore-rpc-json 0.45.0", "hex", @@ -1051,7 +1051,7 @@ dependencies = [ [[package]] name = "dashcore-rpc-json" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "dashcore 0.45.0", "grovedb-bincode", @@ -1076,7 +1076,7 @@ dependencies = [ [[package]] name = "dashcore_hashes" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "dashcore-private 0.45.0", "grovedb-bincode", @@ -1085,7 +1085,7 @@ dependencies = [ [[package]] name = "dashpay-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -1095,7 +1095,7 @@ dependencies = [ [[package]] name = "data-contracts" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "app-connect-contract", "dashpay-contract", @@ -1187,7 +1187,7 @@ dependencies = [ [[package]] name = "document-history-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -1203,7 +1203,7 @@ checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" [[package]] name = "dpns-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -1213,7 +1213,7 @@ dependencies = [ [[package]] name = "dpp" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "anyhow", "async-trait", @@ -1261,7 +1261,7 @@ dependencies = [ [[package]] name = "dpp-json-convertible-derive" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "proc-macro2", "quote", @@ -1270,7 +1270,7 @@ dependencies = [ [[package]] name = "drive" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "byteorder", "derive_more 1.0.0", @@ -1280,6 +1280,7 @@ dependencies = [ "grovedb-bincode", "grovedb-costs", "grovedb-epoch-based-storage-flags", + "grovedb-merk", "grovedb-path", "grovedb-query", "grovedb-version", @@ -1297,7 +1298,7 @@ dependencies = [ [[package]] name = "drive-proof-verifier" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -1717,7 +1718,7 @@ dependencies = [ [[package]] name = "grovedb" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "blake3", "grovedb-bincode", @@ -1760,7 +1761,7 @@ dependencies = [ [[package]] name = "grovedb-bulk-append-tree" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "blake3", "grovedb-bincode", @@ -1777,7 +1778,7 @@ dependencies = [ [[package]] name = "grovedb-costs" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "integer-encoding", "intmap", @@ -1787,7 +1788,7 @@ dependencies = [ [[package]] name = "grovedb-dense-fixed-sized-merkle-tree" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "blake3", "grovedb-bincode", @@ -1800,7 +1801,7 @@ dependencies = [ [[package]] name = "grovedb-element" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "grovedb-bincode", "grovedb-bincode-derive", @@ -1815,7 +1816,7 @@ dependencies = [ [[package]] name = "grovedb-epoch-based-storage-flags" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "grovedb-costs", "hex", @@ -1827,7 +1828,7 @@ dependencies = [ [[package]] name = "grovedb-merk" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "blake3", "byteorder", @@ -1849,7 +1850,7 @@ dependencies = [ [[package]] name = "grovedb-merkle-mountain-range" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "blake3", "grovedb-bincode", @@ -1860,7 +1861,7 @@ dependencies = [ [[package]] name = "grovedb-path" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "hex", ] @@ -1868,7 +1869,7 @@ dependencies = [ [[package]] name = "grovedb-query" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "byteorder", "ed", @@ -1882,7 +1883,7 @@ dependencies = [ [[package]] name = "grovedb-version" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "thiserror 2.0.18", "versioned-feature-core", @@ -1891,7 +1892,7 @@ dependencies = [ [[package]] name = "grovedb-visualize" version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=74818ceb95805f56f141d24ca41f58b75c031a7f#74818ceb95805f56f141d24ca41f58b75c031a7f" +source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" dependencies = [ "hex", "itertools 0.14.0", @@ -2380,7 +2381,7 @@ dependencies = [ [[package]] name = "key-wallet" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=e4208c90786a6854bd498315bcb571ef24182c15#e4208c90786a6854bd498315bcb571ef24182c15" +source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" dependencies = [ "async-trait", "base58ck", @@ -2402,7 +2403,7 @@ dependencies = [ [[package]] name = "keyword-search-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -2476,7 +2477,7 @@ dependencies = [ [[package]] name = "masternode-reward-shares-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -2535,7 +2536,7 @@ dependencies = [ [[package]] name = "moderation-charters-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -2906,7 +2907,7 @@ dependencies = [ [[package]] name = "platform-encryption" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "aes", "cbc", @@ -2939,6 +2940,7 @@ dependencies = [ "ferment-macro", "hex", "http 0.2.12", + "key-wallet 0.43.0", "lazy_static", "libc", "lru 0.12.5", @@ -2963,7 +2965,7 @@ dependencies = [ [[package]] name = "platform-serialization" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "grovedb-bincode", "platform-version", @@ -2971,7 +2973,7 @@ dependencies = [ [[package]] name = "platform-serialization-derive" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "proc-macro2", "quote", @@ -2981,7 +2983,7 @@ dependencies = [ [[package]] name = "platform-value" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "base64 0.22.1", "bs58", @@ -3002,7 +3004,7 @@ dependencies = [ [[package]] name = "platform-version" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "ferment-macro", "grovedb-bincode", @@ -3014,7 +3016,7 @@ dependencies = [ [[package]] name = "platform-versioning" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "proc-macro2", "quote", @@ -3286,7 +3288,7 @@ dependencies = [ [[package]] name = "rs-dapi-client" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "backon", "chrono", @@ -3657,7 +3659,7 @@ checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" [[package]] name = "simple-signer" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "async-trait", "base64 0.22.1", @@ -4029,7 +4031,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "token-history-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -4583,7 +4585,7 @@ dependencies = [ [[package]] name = "wallet-utils-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "platform-value", "platform-version", @@ -4862,7 +4864,7 @@ checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1" [[package]] name = "withdrawals-contract" -version = "4.2.0-beta.4" +version = "5.0.0-beta.2" dependencies = [ "num_enum 0.5.11", "platform-value", diff --git a/platform-mobile/Cargo.toml b/platform-mobile/Cargo.toml index 688ea8e4..83586fcf 100644 --- a/platform-mobile/Cargo.toml +++ b/platform-mobile/Cargo.toml @@ -47,6 +47,7 @@ dashcore = { git = "https://github.com/dashpay/rust-dashcore", features = [ "signer", "serde", ], default-features = false, rev = "981e97f1015960ae5d277afdabcba1cbbc0b3a63" } +key-wallet = { git = "https://github.com/dashpay/rust-dashcore", rev = "981e97f1015960ae5d277afdabcba1cbbc0b3a63" } dashcore_hashes = { git = "https://github.com/dashpay/rust-dashcore", rev = "981e97f1015960ae5d277afdabcba1cbbc0b3a63" } # dashcore-rpc is only needed for core rpc; TODO remove once we have correct core rpc impl dashcore-rpc = { git = "https://github.com/dashpay/rust-dashcore", rev = "981e97f1015960ae5d277afdabcba1cbbc0b3a63" } diff --git a/platform-mobile/src/app_connect.rs b/platform-mobile/src/app_connect.rs new file mode 100644 index 00000000..c212cc42 --- /dev/null +++ b/platform-mobile/src/app_connect.rs @@ -0,0 +1,99 @@ +use crate::config::EntryPoint; +use crate::put::CallbackSigner; +use crate::sdk::DashSdk; +use dash_sdk::platform::contract_groups::ContractGroupInfo; +use dash_sdk::platform::documents::transitions::delete::DocumentDeleteTransitionBuilder; +use dash_sdk::platform::transition::put_settings::PutSettings; +use dash_sdk::platform::Fetch; +use dpp::data_contract::DataContract; +use dpp::document::Document; +use dpp::identity::Identity; +use dpp::identity::identity_public_key::IdentityPublicKey; +use platform_value::types::identifier::Identifier; +use std::sync::Arc; + +/// Fetches a group's owner through the SDK's proof-verifying query path. +/// `None` means the group does not exist; transport/proof failures remain errors. +#[ferment_macro::export] +pub fn fetch_contract_group_owner_with_sdk( + rust_sdk: *mut DashSdk, + group_id: Identifier, +) -> Result, String> { + let sdk_handle = unsafe { &*rust_sdk }; + sdk_handle.get_runtime().block_on(async { + ContractGroupInfo::fetch_with_settings( + &sdk_handle.get_sdk(), + group_id, + sdk_handle.get_request_settings(), + ) + .await + .map(|info| info.map(|info| *info.owner().owner_id())) + .map_err(|e| e.to_string()) + }) +} + +/// Reads the block timestamp from a fresh proof-verified identity query. +#[ferment_macro::export] +pub fn fetch_platform_time_with_sdk( + rust_sdk: *mut DashSdk, + identity_id: Identifier, +) -> Result { + let sdk_handle = unsafe { &*rust_sdk }; + sdk_handle.get_runtime().block_on(async { + Identity::fetch_with_metadata( + &sdk_handle.get_sdk(), + identity_id, + Some(sdk_handle.get_request_settings()), + ) + .await + .map(|(_, metadata)| metadata.time_ms) + .map_err(|e| e.to_string()) + }) +} + +/// Deletes using the complete original document, including all index-only values. +/// Success proves absence of the entry, not that this particular delete executed. +#[ferment_macro::export] +pub fn delete_document_sdk( + rust_sdk: *mut DashSdk, + document: Document, + data_contract_id: Identifier, + document_type: String, + identity_public_key: IdentityPublicKey, + signer_context: usize, + signer_callback: u64, +) -> Result { + if signer_callback == 0 { + return Err("A document delete requires a signer callback".to_string()); + } + let sdk_handle = unsafe { &*rust_sdk }; + sdk_handle.get_runtime().block_on(async { + let sdk = sdk_handle.get_sdk(); + let contract = DataContract::fetch_with_settings( + &sdk, + data_contract_id, + sdk_handle.get_request_settings(), + ) + .await + .map_err(|e| e.to_string())? + .ok_or_else(|| "data contract not found".to_string())?; + let signer = + CallbackSigner::new(signer_context, signer_callback).map_err(|e| e.to_string())?; + let builder = DocumentDeleteTransitionBuilder::from_document( + Arc::new(contract), + document_type, + &document, + ) + .with_settings(PutSettings { + request_settings: sdk_handle.get_request_settings(), + identity_nonce_stale_time_s: None, + user_fee_increase: None, + wait_timeout: None, + state_transition_creation_options: None, + }); + sdk.document_delete(builder, &identity_public_key, &signer) + .await + .map_err(|e| e.to_string())?; + Ok(document) + }) +} diff --git a/platform-mobile/src/clone.rs b/platform-mobile/src/clone.rs index 5b0077cb..04acaed2 100644 --- a/platform-mobile/src/clone.rs +++ b/platform-mobile/src/clone.rs @@ -19,6 +19,7 @@ use drive::query::{OrderClause, WhereClause, WhereOperator}; use drive_proof_verifier::types::{Contenders, ContestedResource, ContestedResources, ResourceVotesByIdentity, VotePollsGroupedByTimestamp, Voter, Voters}; use platform_value::types::binary_data::BinaryData; use platform_value::{Hash256, Value, ValueMap}; +use crate::fetch_identity::IdentityKeyRemainingBudget; #[allow(non_snake_case)] #[ferment_macro::export] @@ -265,3 +266,9 @@ pub fn ResourceVotesByIdentity_clone(o: ResourceVotesByIdentity) -> ResourceVote pub fn StateTransitionInfo_clone(info: StateTransitionInfo) -> StateTransitionInfo { info.clone() } + +#[allow(non_snake_case)] +#[ferment_macro::export] +pub fn IdentityKeyRemainingBudget_clone(info: IdentityKeyRemainingBudget) -> IdentityKeyRemainingBudget { + info.clone() +} diff --git a/platform-mobile/src/config.rs b/platform-mobile/src/config.rs index a9df3952..4b2bccd6 100644 --- a/platform-mobile/src/config.rs +++ b/platform-mobile/src/config.rs @@ -111,7 +111,13 @@ pub struct Config { #[serde(default = "Config::default_dump_dir")] pub dump_dir: PathBuf, #[serde(default = "Config::default_is_testnet")] - pub is_testnet: bool + pub is_testnet: bool, + #[serde(skip)] + pub explicit_network: Option, + #[serde(skip)] + pub endpoints: Vec, + #[serde(skip)] + pub devnet_name: Option, } pub trait EntryPoint { @@ -123,6 +129,38 @@ pub trait EntryPoint { } impl Config { + /// Explicit client configuration never reads process-wide environment variables. + pub fn for_network(network: &str, endpoints: Vec) -> Result { + let (network, devnet_name) = match network { + "mainnet" => (Network::Mainnet, None), + "testnet" => (Network::Testnet, None), + name if name.starts_with("devnet-") && name.len() > 7 + && name[7..].bytes().all(|b| b.is_ascii_alphanumeric() || b == b'-') => + (Network::Devnet, Some(name.to_owned())), + _ => return Err("Expected mainnet, testnet, or devnet-".to_owned()), + }; + if endpoints.is_empty() { + return Err("At least one explicit DAPI endpoint is required".to_owned()); + } + for endpoint in &endpoints { + let uri = Uri::from_str(endpoint).map_err(|e| format!("Invalid DAPI endpoint: {e}"))?; + if uri.scheme_str() != Some("https") || uri.host().is_none() + || uri.authority().map_or(true, |a| a.as_str().contains('@')) + || uri.path() != "/" && !uri.path().is_empty() + || uri.query().is_some() || endpoint.contains('#') + || uri.port_u16().is_none() || uri.port_u16() == Some(0) { + return Err("DAPI endpoints must be HTTPS URLs with an explicit port and no credentials, path, query or fragment".to_owned()); + } + let _: Address = uri.try_into().map_err(|e| format!("Invalid DAPI address: {e}"))?; + } + Ok(Self { + platform_host: String::new(), platform_port: 0, platform_ssl: true, + core_ip: String::new(), core_port: 0, core_user: String::new(), core_password: String::new(), + dump_dir: Self::default_dump_dir(), is_testnet: network != Network::Mainnet, + explicit_network: Some(network), endpoints, devnet_name, + }) + } + /// Prefix of configuration options in the environment variables and `.env` file. pub const CONFIG_PREFIX: &'static str = "RS_SDK_"; /// Load configuration from operating system environment variables and `.env` file. @@ -218,6 +256,12 @@ impl Config { #[allow(unused)] /// Create list of Platform addresses from the configuration pub fn address_list(&self) -> AddressList { + if self.explicit_network.is_some() { + return AddressList::from_iter(self.endpoints.iter().map(|endpoint| { + let uri = Uri::from_str(endpoint).expect("validated endpoint"); + Address::try_from(uri).expect("validated address") + })); + } let scheme = if self.platform_ssl { "https" } else { "http" }; let white_list = if self.is_testnet { @@ -414,7 +458,10 @@ impl Config { true } - fn network(&self) -> Network { + pub(crate) fn network(&self) -> Network { + if let Some(network) = self.explicit_network { + return network; + } if self.is_testnet { Network::Testnet } else { @@ -422,3 +469,47 @@ impl Config { } } } + +#[cfg(test)] +mod network_configuration_tests { + use super::*; + + #[test] + fn explicit_devnets_do_not_fall_back_to_testnet_nodes() { + let cfg = Config::for_network("devnet-sakura", vec!["https://127.0.0.1:1443".into()]).unwrap(); + assert_eq!(cfg.network(), Network::Devnet); + assert_eq!(cfg.devnet_name.as_deref(), Some("devnet-sakura")); + assert_eq!(cfg.endpoints, vec!["https://127.0.0.1:1443"]); + assert_eq!(cfg.address_list().len(), 1); + } + + #[test] + fn explicit_mainnet_and_testnet_remain_distinct() { + for (name, network) in [("mainnet", Network::Mainnet), ("testnet", Network::Testnet)] { + let cfg = Config::for_network(name, vec!["https://127.0.0.1:443".into()]).unwrap(); + assert_eq!(cfg.network(), network); + } + } + + #[test] + fn sdk_constructor_preserves_devnet_network_and_endpoints() { + extern "C" fn quorum_callback(_: *const c_void, _: u32, _: *const u8, _: u32, _: *mut u8) {} + let endpoints = vec!["https://127.0.0.1:1443".to_owned()]; + let sdk = crate::sdk::create_dash_sdk_with_network(0, quorum_callback as usize as u64, 0, + "devnet-sakura".into(), endpoints.clone(), 5, 5, 1).unwrap(); + assert_eq!(sdk.sdk.network, Network::Devnet); + assert_eq!(sdk.config.endpoints, endpoints); + assert_eq!(sdk.config.devnet_name.as_deref(), Some("devnet-sakura")); + } + + #[test] + fn rejects_invalid_networks_and_endpoints() { + assert!(Config::for_network("devnet-", vec!["https://127.0.0.1:1443".into()]).is_err()); + assert!(Config::for_network("devnet-sakura", vec![]).is_err()); + for endpoint in ["127.0.0.1", "http://127.0.0.1:1443", "https://127.0.0.1", + "https://127.0.0.1:0", "https://user@127.0.0.1:1443", "https://127.0.0.1:1443/path", + "https://127.0.0.1:1443?secret=x", "https://127.0.0.1:1443#fragment"] { + assert!(Config::for_network("devnet-sakura", vec![endpoint.into()]).is_err(), "{endpoint}"); + } + } +} diff --git a/platform-mobile/src/data_contracts.rs b/platform-mobile/src/data_contracts.rs index 0f421f69..88a26267 100644 --- a/platform-mobile/src/data_contracts.rs +++ b/platform-mobile/src/data_contracts.rs @@ -3,6 +3,7 @@ use std::sync::Arc; use dash_sdk::platform::{DocumentQuery, Fetch}; use dash_sdk::{Error, Sdk}; use dpp::data_contract::accessors::v0::DataContractV0Getters; +use dpp::data_contract::config::v0::DataContractConfigGettersV0; use dpp::data_contract::DataContract; use dpp::document::Document; use drive_proof_verifier::types::Documents; @@ -26,7 +27,9 @@ pub struct DataContractFFI { pub id: Identifier, pub owner_id: Identifier, pub doc_types: Vec, - pub version: u32 + pub version: u32, + pub requires_identity_encryption_bounded_key: bool, + pub requires_identity_decryption_bounded_key: bool, } #[allow(non_snake_case)] @@ -37,24 +40,13 @@ pub fn DataContractFFI_clone(value: DataContractFFI) -> DataContractFFI { impl Into for DataContract { fn into(self) -> DataContractFFI { - match self { - DataContract::V0(contract) => { - DataContractFFI { - id: contract.id(), - owner_id: contract.owner_id(), - doc_types: contract.document_types.keys().cloned().collect(), - version: contract.version() - } - } - DataContract::V1(contract) => { - DataContractFFI { - id: contract.id(), - owner_id: contract.owner_id(), - doc_types: contract.document_types.keys().cloned().collect(), - version: contract.version() - } - } - _ => panic!("unknown version of DataContract") + DataContractFFI { + id: self.id(), + owner_id: self.owner_id(), + doc_types: self.document_types().keys().cloned().collect(), + version: self.version(), + requires_identity_encryption_bounded_key: self.config().requires_identity_encryption_bounded_key().is_some(), + requires_identity_decryption_bounded_key: self.config().requires_identity_decryption_bounded_key().is_some(), } } } @@ -211,9 +203,36 @@ fn get_missing_data_contract_test() { #[cfg(test)] mod tests { + use super::*; + use data_contracts::SystemDataContract; + use dpp::data_contract::accessors::v0::DataContractV0Setters; + use dpp::data_contract::config::v0::DataContractConfigSettersV0; + use dpp::data_contract::storage_requirements::keys_for_document_type::StorageKeyRequirements; + use dpp::system_data_contracts::load_system_data_contract; + use platform_version::version::PlatformVersion; use rand::Rng; use platform_value::string_encoding::{encode, Encoding}; + #[test] + fn app_connect_contract_conversion_preserves_owner_version_and_key_opt_ins() { + let mut contract = load_system_data_contract( + SystemDataContract::AppConnect, PlatformVersion::latest(), + ).unwrap(); + let owner = Identifier::from([42; 32]); + contract.set_owner_id(owner); + contract.set_version(7); + contract.config_mut().set_requires_identity_encryption_bounded_key( + Some(StorageKeyRequirements::Unique), + ); + contract.config_mut().set_requires_identity_decryption_bounded_key(None); + let ffi: DataContractFFI = contract.into(); + assert_eq!(ffi.owner_id, owner); + assert_ne!(ffi.owner_id, ffi.id); + assert_eq!(ffi.version, 7); + assert!(ffi.requires_identity_encryption_bounded_key); + assert!(!ffi.requires_identity_decryption_bounded_key); + } + #[test] fn generate_random_32_byte_vector() { let mut rng = rand::thread_rng(); diff --git a/platform-mobile/src/fetch_identity.rs b/platform-mobile/src/fetch_identity.rs index f977896a..7c350b57 100644 --- a/platform-mobile/src/fetch_identity.rs +++ b/platform-mobile/src/fetch_identity.rs @@ -5,6 +5,9 @@ use dpp::errors::protocol_error::ProtocolError; use platform_version::version::PlatformVersion; use dpp::document::{Document, DocumentV0Getters}; use dash_sdk::platform::{DocumentQuery, Fetch, FetchMany}; +use dash_sdk::platform::identity_keys_remaining_budgets::{ + IdentityKeysRemainingBudgets, IdentityKeysRemainingBudgetsQuery, +}; use dash_sdk::platform::types::identity::{NonUniquePublicKeyHashQuery, PublicKeyHash}; use dpp::data_contract::DataContract; use serde::Deserialize; @@ -17,6 +20,14 @@ use crate::config::{Config, EntryPoint}; use crate::logs::setup_logs; use crate::sdk::{create_dash_sdk, create_dash_sdk_using_core_mainnet, create_dash_sdk_using_core_testnet, DashSdk}; +#[derive(Clone)] +#[ferment_macro::export] +pub struct IdentityKeyRemainingBudget { + pub key_id: u32, + pub has_remaining_budget: bool, + pub remaining_budget: u64, +} + pub fn test_identifier() -> Identifier { Identifier::from_string("7Yowk46VwwHqmD5yZyyygggh937aP6h2UW7aQWBdWpM5", Encoding::Base58).unwrap() } @@ -54,6 +65,40 @@ pub fn fetch_identity_balance_with_sdk( } } +#[ferment_macro::export] +pub fn fetch_identity_keys_remaining_budgets_with_sdk( + rust_sdk: *mut DashSdk, + identifier: Identifier, + key_ids: Vec, +) -> Result, String> { + tracing::info!("fetch_identity_keys_remaining_budgets_with_sdk"); + unsafe { + match identity_keys_remaining_budgets_with_sdk(rust_sdk, &identifier, key_ids) { + Ok(budgets) => Ok(budgets), + Err(err) => Err(err.to_string()), + } + } +} + +#[ferment_macro::export] +pub fn fetch_identity_key_remaining_budget_with_sdk( + rust_sdk: *mut DashSdk, + identifier: Identifier, + key_id: u32, +) -> Result { + tracing::info!("fetch_identity_key_remaining_budget_with_sdk"); + unsafe { + match identity_keys_remaining_budgets_with_sdk(rust_sdk, &identifier, vec![key_id]) { + Ok(mut budgets) => Ok(budgets.pop().unwrap_or(IdentityKeyRemainingBudget { + key_id, + has_remaining_budget: false, + remaining_budget: 0, + })), + Err(err) => Err(err.to_string()), + } + } +} + #[ferment_macro::export] pub fn fetch_identity_with_keyhash_sdk( rust_sdk: *mut DashSdk, @@ -84,6 +129,40 @@ pub fn fetch_identity_with_keyhash_sdk( } } +unsafe fn identity_keys_remaining_budgets_with_sdk( + rust_sdk: *mut DashSdk, + id: &Identifier, + key_ids: Vec, +) -> Result, ProtocolError> { + let rt = unsafe { (*rust_sdk).get_runtime() }.clone(); + + rt.block_on(async { + let sdk = unsafe { (*rust_sdk).get_sdk() }; + let settings = unsafe { (*rust_sdk).get_request_settings() }; + let query = IdentityKeysRemainingBudgetsQuery { + identity_id: id.clone(), + key_ids, + }; + let result = IdentityKeysRemainingBudgets::fetch_with_settings(&sdk, query, settings).await; + + match result { + Ok(Some(budgets)) => Ok(budgets + .iter() + .map(|(key_id, budget)| IdentityKeyRemainingBudget { + key_id: *key_id, + has_remaining_budget: budget.is_some(), + remaining_budget: budget.unwrap_or(0), + }) + .collect()), + Ok(None) => Ok(Vec::new()), + Err(e) => Err(ProtocolError::IdentifierError(format!( + "Identity key remaining budgets fetch failed: {}", + e + ))), + } + }) +} + // TODO: this should return Result, String> unsafe fn identity_read_with_sdk(rust_sdk: *mut DashSdk, id: &Identifier) -> Result, ProtocolError> { @@ -271,4 +350,4 @@ fn fetch_identity_balance_with_sdk_test() { Ok(balance) => tracing::info!("success fetching identity: {:?}", balance), Err(err) => panic!("error fetching identity: {}", err) } -} \ No newline at end of file +} diff --git a/platform-mobile/src/key_wallet.rs b/platform-mobile/src/key_wallet.rs new file mode 100644 index 00000000..974e2acb --- /dev/null +++ b/platform-mobile/src/key_wallet.rs @@ -0,0 +1,159 @@ +use key_wallet::bip32::{ChildNumber, DerivationPath}; +use key_wallet::Network; + +fn application_session_authentication_derivation_path( + is_testnet: bool, + identity_id: [u8; 32], + request_id: [u8; 32], +) -> (Network, DerivationPath) { + let network = if is_testnet { + Network::Testnet + } else { + Network::Mainnet + }; + let coin_type = match network { + Network::Mainnet => 5, + _ => 1, + }; + let path = DerivationPath::from(vec![ + ChildNumber::Hardened { index: 9 }, + ChildNumber::Hardened { index: coin_type }, + ChildNumber::Hardened { index: 5 }, + ChildNumber::Hardened { index: 6 }, + ChildNumber::Hardened { index: 0 }, + ChildNumber::Hardened256 { index: identity_id }, + ChildNumber::Hardened256 { index: request_id }, + ]); + (network, path) +} + +/// Returns the frozen DIP-13 application session authentication path. +/// +/// The caller should pass `hash256(appEphPub)` as `request_id`; the +/// `hash160(appEphPub)` value is the on-chain lookup key and must not be used +/// as this derivation leaf. +#[ferment_macro::export] +pub fn application_session_authentication_path( + is_testnet: bool, + identity_id: [u8; 32], + request_id: [u8; 32], +) -> String { + let (_, path) = + application_session_authentication_derivation_path(is_testnet, identity_id, request_id); + path.to_string() +} + +/// Derives the DIP-13 application session authentication private key. +/// +/// The `request_id` parameter is `hash256(appEphPub)`. The on-chain lookup key +/// remains `hash160(appEphPub)`, so callers must keep the two digests separate. +#[ferment_macro::export] +pub fn application_session_authentication_private_key_from_seed( + is_testnet: bool, + seed: Vec, + identity_id: [u8; 32], + request_id: [u8; 32], +) -> Result, String> { + let mut seed = seed; + let (network, path) = + application_session_authentication_derivation_path(is_testnet, identity_id, request_id); + let result = path + .derive_priv_ecdsa_for_master_seed(&seed, network) + .map(|key| key.private_key.secret_bytes().to_vec()) + .map_err(|e| e.to_string()); + seed.fill(0); + result +} + +fn application_encryption_derivation_path( + is_testnet: bool, + identity_id: [u8; 32], + contract_id: [u8; 32], + key_purpose: u32, +) -> Result<(Network, DerivationPath), String> { + if key_purpose != 1 && key_purpose != 2 { + return Err("Application key purpose must be ENCRYPTION (1) or DECRYPTION (2)".into()); + } + let network = if is_testnet { + Network::Testnet + } else { + Network::Mainnet + }; + let path = DerivationPath::from(vec![ + ChildNumber::Hardened { index: 9 }, + ChildNumber::Hardened { + index: if is_testnet { 1 } else { 5 }, + }, + ChildNumber::Hardened { index: 5 }, + ChildNumber::Hardened { index: 7 }, + ChildNumber::Hardened { index: 0 }, + ChildNumber::Hardened256 { index: identity_id }, + ChildNumber::Hardened256 { index: contract_id }, + ChildNumber::Hardened { index: key_purpose }, + ]); + Ok((network, path)) +} + +/// DIP-13 rotation-zero application key. Pass `true` for every non-mainnet network. +/// `key_purpose` is the Platform ENCRYPTION (1) or DECRYPTION (2) purpose. +#[ferment_macro::export] +pub fn application_encryption_private_key_from_seed( + is_testnet: bool, + seed: Vec, + identity_id: [u8; 32], + contract_id: [u8; 32], + key_purpose: u32, +) -> Result, String> { + let mut seed = seed; + let result = + application_encryption_derivation_path(is_testnet, identity_id, contract_id, key_purpose) + .and_then(|(network, path)| { + path.derive_priv_ecdsa_for_master_seed(&seed, network) + .map(|key| key.private_key.secret_bytes().to_vec()) + .map_err(|e| e.to_string()) + }); + seed.fill(0); + result +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn application_keys_separate_networks_purposes_and_contracts() { + let derive = |testnet, contract, purpose| { + application_encryption_private_key_from_seed( + testnet, + vec![42; 32], + [1; 32], + contract, + purpose, + ) + .unwrap() + }; + let encryption = derive(true, [2; 32], 1); + assert_eq!(encryption, derive(true, [2; 32], 1)); + assert_ne!(encryption, derive(false, [2; 32], 1)); + assert_ne!(encryption, derive(true, [2; 32], 2)); + assert_ne!(encryption, derive(true, [3; 32], 1)); + assert_ne!( + encryption, + application_session_authentication_private_key_from_seed( + true, + vec![42; 32], + [1; 32], + [2; 32] + ) + .unwrap() + ); + assert!(application_encryption_private_key_from_seed( + true, + vec![42; 32], + [1; 32], + [2; 32], + 0 + ) + .is_err()); + } +} diff --git a/platform-mobile/src/lib.rs b/platform-mobile/src/lib.rs index 4149844c..900dc3e3 100644 --- a/platform-mobile/src/lib.rs +++ b/platform-mobile/src/lib.rs @@ -14,6 +14,7 @@ mod logs; pub mod voting; pub mod sdk; pub mod state_transition; +pub mod key_wallet; +pub mod app_connect; extern crate ferment_macro; - diff --git a/platform-mobile/src/provider.rs b/platform-mobile/src/provider.rs index d5281987..14730a28 100644 --- a/platform-mobile/src/provider.rs +++ b/platform-mobile/src/provider.rs @@ -37,7 +37,7 @@ type DataContractCallback = extern "C" fn(id: &Identifier) -> DataContract; pub(crate) struct CallbackContextProvider { pub context: * const c_void, pub quorum_public_key_callback: QuorumPublicKeyCallback, - pub data_contract_callback: DataContractCallback, + pub data_contract_callback: Option, /// [Sdk] to use when fetching data from Platform /// /// Note that if the `sdk` is `None`, the context provider will not be able to fetch data itself and will rely on @@ -83,7 +83,11 @@ impl CallbackContextProvider { ) -> Result { unsafe { let callback1: QuorumPublicKeyCallback = std::mem::transmute(quorum_public_key_callback as usize); - let callback2: DataContractCallback = std::mem::transmute(data_contract_callback as usize); + let callback2: Option = if data_contract_callback == 0 { + None + } else { + Some(std::mem::transmute(data_contract_callback as usize)) + }; Ok(Self { context, quorum_public_key_callback: callback1, diff --git a/platform-mobile/src/put.rs b/platform-mobile/src/put.rs index 5009d704..6c08f4ac 100644 --- a/platform-mobile/src/put.rs +++ b/platform-mobile/src/put.rs @@ -12,6 +12,7 @@ use dash_sdk::platform::transition::put_identity::PutIdentity; use dash_sdk::platform::transition::put_identity_update::PutIdentityUpdate; use dash_sdk::platform::transition::put_settings::PutSettings; use dash_sdk::platform::transition::TxId; +use dash_sdk::platform::transition::waitable::wait_for_document_and_owner_balance; use dashcore::hashes::{Hash, sha256}; use dashcore::key::Secp256k1; use dashcore::secp256k1::{Message, SecretKey}; @@ -56,8 +57,8 @@ use dapi_grpc::platform::v0::{StateTransitionBroadcastError, WaitForStateTransit use dapi_grpc::platform::v0::wait_for_state_transition_result_response::{Version, wait_for_state_transition_result_response_v0}; use dashcore::blockdata::transaction::outpoint::OutPoint; use dash_sdk::platform::transition::top_up_identity::TopUpIdentity; -use dpp::data_contract::document_type::accessors::DocumentTypeV0Getters; -use dpp::state_transition::StateTransition; +use dpp::data_contract::document_type::accessors::{DocumentTypeV0Getters, DocumentTypeV2Getters}; +use dpp::state_transition::{StateTransition, StateTransitionLike}; use crate::sdk::DashSdk; use dpp::serialization::Signable; use dpp::serialization::PlatformSerializable; @@ -137,6 +138,138 @@ pub async fn wait_for_response_concurrent( Err(last_error.unwrap_or(Error::Generic("All requests failed".to_string()))) } +fn validate_created_document_snapshot( + expected: &Document, + submitted_id: Identifier, + actual: &Document, +) -> Result<(), Error> { + if actual.id() != submitted_id { + return Err(Error::InvalidProvedResponse( + "index-only snapshot ID does not match the submitted transition".to_string(), + )); + } + if actual.owner_id() != expected.owner_id() { + return Err(Error::InvalidProvedResponse( + "index-only snapshot owner does not match the submitted document".to_string(), + )); + } + if actual.properties() != expected.properties() { + return Err(Error::InvalidProvedResponse( + "index-only snapshot properties do not match the submitted document".to_string(), + )); + } + Ok(()) +} + +#[cfg(test)] +mod index_only_snapshot_tests { + use super::*; + use dpp::document::DocumentV0Setters; + + fn response(id: u8, owner: u8, ciphertext: u8) -> Document { + Document::V0(DocumentV0 { + id: Identifier::from([id; 32]), + owner_id: Identifier::from([owner; 32]), + properties: BTreeMap::from([ + ("appEphemeralPubKeyHash".to_string(), Value::Bytes(vec![3; 20])), + ("walletEphemeralPubKey".to_string(), Value::Bytes(vec![2; 33])), + ("encryptedPayload".to_string(), Value::Bytes(vec![ciphertext; 60])), + ]), + ..Default::default() + }) + } + + #[test] + fn accepts_exact_snapshot() { + let expected = response(1, 2, 4); + assert!(validate_created_document_snapshot(&expected, expected.id(), &expected.clone()).is_ok()); + } + + #[test] + fn accepts_nonce_derived_id_instead_of_placeholder() { + let contract = Identifier::from([8; 32]); + let owner = Identifier::from([2; 32]); + let entropy = [7; 32]; + let mut expected = response(1, 2, 4); + expected.set_id(Document::generate_document_id_v0(&contract, &owner, "loginKeyResponse", &entropy)); + let submitted_id = Document::generate_document_id_v1(&contract, &owner, "loginKeyResponse", &entropy, 42); + assert_ne!(expected.id(), submitted_id); + let mut snapshot = expected.clone(); + snapshot.set_id(submitted_id); + assert!(validate_created_document_snapshot(&expected, submitted_id, &snapshot).is_ok()); + assert!(validate_created_document_snapshot(&expected, submitted_id, &expected).is_err()); + } + + #[tokio::test] + async fn accepts_id_from_real_connect_creation_transition() { + use dpp::data_contract::config::DataContractConfig; + use dpp::dashcore::secp256k1::{PublicKey, Secp256k1, SecretKey}; + use dpp::state_transition::batch_transition::BatchTransition; + use dpp::state_transition::batch_transition::methods::v0::DocumentsBatchTransitionMethodsV0; + use platform_version::version::PlatformVersion; + use simple_signer::signer::SimpleSigner; + + let version = PlatformVersion::latest(); + let config = DataContractConfig::default_for_version(version).unwrap(); + let schemas: serde_json::Value = serde_json::from_str(include_str!( + "../../../platform/packages/app-connect-contract/schema/v1/app-connect-contract-documents.json" + )).unwrap(); + let contract = Identifier::from([8; 32]); + let document_type = DocumentType::try_from_schema( + contract, 1, config.version(), "loginKeyResponse", + Value::from(schemas["loginKeyResponse"].clone()), None, + &BTreeMap::new(), &config, false, &mut Vec::new(), version, + ).unwrap(); + assert!(document_type.index_only()); + let entropy = [7; 32]; + let mut expected = response(1, 2, 4); + expected.set_id(Document::generate_document_id_v0( + &contract, &expected.owner_id(), "loginKeyResponse", &entropy, + )); + document_type.as_ref().sanitize_document_properties(expected.properties_mut()); + let secret = [1; 32]; + let public = PublicKey::from_secret_key(&Secp256k1::new(), &SecretKey::from_slice(&secret).unwrap()); + let key = IdentityPublicKey::V0(IdentityPublicKeyV0 { + id: 1, purpose: Purpose::AUTHENTICATION, security_level: SecurityLevel::HIGH, + contract_bounds: None, key_type: KeyType::ECDSA_SECP256K1, read_only: false, + data: public.serialize().to_vec().into(), disabled_at: None, + }); + let mut signer = SimpleSigner::default(); + signer.add_identity_public_key(key.clone(), secret); + let transition = BatchTransition::new_document_creation_transition_from_document( + expected.clone(), document_type.as_ref(), entropy, &key, 42, 0, None, + &signer, version, None, + ).await.unwrap(); + let StateTransition::Batch(batch) = transition else { panic!("expected document batch") }; + let submitted_id = batch.modified_data_ids()[0]; + assert_ne!(expected.id(), submitted_id); + assert_eq!(submitted_id, Document::generate_document_id_v1( + &contract, &expected.owner_id(), "loginKeyResponse", &entropy, 42, + )); + let mut snapshot = expected.clone(); + snapshot.set_id(submitted_id); + assert!(validate_created_document_snapshot(&expected, submitted_id, &snapshot).is_ok()); + } + + #[test] + fn rejects_different_document_id() { + let expected = response(1, 2, 4); + assert!(validate_created_document_snapshot(&expected, expected.id(), &response(9, 2, 4)).is_err()); + } + + #[test] + fn rejects_different_owner() { + let expected = response(1, 2, 4); + assert!(validate_created_document_snapshot(&expected, expected.id(), &response(1, 9, 4)).is_err()); + } + + #[test] + fn rejects_different_response_fields() { + let expected = response(1, 2, 4); + assert!(validate_created_document_snapshot(&expected, expected.id(), &response(1, 2, 9)).is_err()); + } +} + pub async fn wait_for_response_concurrent_identity( identity: &Identity, sdk: &Sdk, @@ -388,11 +521,8 @@ pub fn put_identity_sdk( trace!("Finished SDK, {:?}", sdk); trace!("Set up network, private key and signer"); - let network = if is_testnet { - Network::Testnet - } else { - Network::Mainnet - }; + // Keep the legacy argument for ABI compatibility; the SDK owns network selection. + let network = sdk.network; let private_key = match PrivateKey::from_slice(asset_lock_proof_private_key.as_slice(), network) { Ok(pk) => pk, Err(e) => return Err(e.to_string()) @@ -530,11 +660,7 @@ pub fn topup_identity_sdk( // Your async code here let sdk = unsafe { (*rust_sdk).get_sdk() }; - let network = if is_testnet { - Network::Testnet - } else { - Network::Mainnet - }; + let network = sdk.network; let private_key = match PrivateKey::from_slice(asset_lock_proof_private_key.as_slice(), network) { Ok(pk) => pk, Err(e) => return Err(e.to_string()) @@ -668,10 +794,11 @@ pub fn put_document_sdk( sdk.version() ); - let new_document = match new_document_result { + let mut new_document = match new_document_result { Ok(doc) => doc, Err(e) => return Err(e.to_string()) }; + document_type.sanitize_document_properties(new_document.properties_mut()); let request_settings = unsafe { (*rust_sdk).get_request_settings() }; let settings = PutSettings { @@ -700,13 +827,35 @@ pub fn put_document_sdk( "state transition (hash): {}", hex::encode(hash_double_to_vec(transition.serialize_to_bytes().unwrap())) ); - let result_document = wait_for_response_concurrent( - &new_document, - &sdk, - transition.clone(), - data_contract.clone(), - settings - ).await.or_else(|err|Err(err.to_string()))?; + // Index-only proofs authenticate the resulting entry, not this create's execution. + // Match the SDK's PutDocument behavior and retain strict waits for stored documents. + let result_document = if document_type.index_only() { + // PV14 replaces the document's placeholder ID with a nonce-derived ID. + let submitted_id = match &transition { + StateTransition::Batch(batch) => { + let ids = batch.modified_data_ids(); + if ids.len() != 1 { + return Err("expected one submitted document ID".to_string()); + } + ids[0] + } + _ => return Err("expected a document batch transition".to_string()), + }; + let (snapshot, _owner_balance) = wait_for_document_and_owner_balance( + &sdk, transition, Some(settings) + ).await.map_err(|err| err.to_string())?; + validate_created_document_snapshot(&new_document, submitted_id, &snapshot) + .map_err(|err| err.to_string())?; + snapshot + } else { + wait_for_response_concurrent( + &new_document, + &sdk, + transition.clone(), + data_contract.clone(), + settings + ).await.map_err(|err| err.to_string())? + }; Ok(result_document) }) diff --git a/platform-mobile/src/put_test.rs b/platform-mobile/src/put_test.rs index 396d1eff..bebbf112 100644 --- a/platform-mobile/src/put_test.rs +++ b/platform-mobile/src/put_test.rs @@ -102,6 +102,8 @@ fn test_put_documents_for_username() { updated_at_core_block_height: None, transferred_at_core_block_height: None, creator_id: None, + moderated_at: None, + moderated_by: None, } ); // data = {HashMap@3953} size = 7 @@ -150,6 +152,8 @@ fn test_put_documents_for_username() { updated_at_core_block_height: None, transferred_at_core_block_height: None, creator_id: None, + moderated_at: None, + moderated_by: None, } ); diff --git a/platform-mobile/src/sdk.rs b/platform-mobile/src/sdk.rs index 687bc4c9..d87b6155 100644 --- a/platform-mobile/src/sdk.rs +++ b/platform-mobile/src/sdk.rs @@ -10,9 +10,55 @@ use platform_value::Identifier; use tokio::runtime::{Builder, Runtime}; use crate::config::{Config, EntryPoint}; use crate::logs::setup_logs; -use crate::provider::DataContractCache; +use crate::provider::{CallbackContextProvider, DataContractCache}; + +/// Creates a client with explicit endpoints; invalid configuration is returned across FFI. +#[ferment_macro::export] +pub fn create_dash_sdk_with_network( + context_provider_context: usize, + quorum_public_key_callback: u64, + data_contract_callback: u64, + network: String, + endpoints: Vec, + connect_timeout: usize, + timeout: usize, + retries: usize, +) -> Result { + let config = Config::for_network(&network, endpoints)?; + if quorum_public_key_callback == 0 { + return Err("Explicit network clients require a quorum public key callback".to_owned()); + } + setup_logs(); + let runtime = Arc::new(Builder::new_multi_thread().enable_all().build().map_err(|e| e.to_string())?); + let cache = Arc::new(DataContractCache::new(NonZeroUsize::new(100).unwrap())); + let context = context_provider_context as *const c_void; + let settings = RequestSettings { + connect_timeout: Some(Duration::from_secs(connect_timeout as u64)), + timeout: Some(Duration::from_secs(timeout as u64)), + retries: Some(retries), ban_failed_address: Some(true), + max_decoding_message_size: Some(16 * 1024 * 1024), + }; + let sdk = runtime.block_on(async { + let mut provider = CallbackContextProvider::new(context, quorum_public_key_callback, + data_contract_callback, None, cache.clone(), NonZeroUsize::new(100).unwrap()) + .map_err(|e| e.to_string())?; + let bootstrap_provider = CallbackContextProvider::new(context, quorum_public_key_callback, + data_contract_callback, None, cache.clone(), NonZeroUsize::new(100).unwrap()) + .map_err(|e| e.to_string())?; + let mut sdk = dash_sdk::SdkBuilder::new(config.address_list()) + .with_network(config.network()).with_settings(settings) + .with_context_provider(bootstrap_provider) + .build().map_err(|e| e.to_string())?; + provider.set_sdk(Some(Arc::new(sdk.clone()))); + sdk.set_context_provider(provider); + Ok::<_, String>(sdk) + })?; + Ok(DashSdk { config: Arc::new(config), runtime, sdk: Arc::new(sdk), + context_provider_context: context, data_contract_cache: cache, request_settings: settings }) +} #[ferment_macro::opaque] +#[derive(Clone)] pub struct DashSdk { pub config: Arc, pub runtime: Arc, diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 00000000..f71b0da0 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "1.98.1" +profile = "minimal" From 25c83e72398a4ef002c26ad117b62cfe1f01de94 Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Tue, 20 Oct 2026 14:18:32 -0700 Subject: [PATCH 06/21] feat: expose safe wallet token-purchase requests Decode one exact unsigned direct-purchase batch, verify token identity and denomination, and rebuild approved values with a fresh nonce and an unbound CRITICAL wallet key. Reject unsupported operations and hidden fee or group changes. Add native decoder and JNI boundary regression tests. Treat purchase proof results as affected-state snapshots rather than execution confirmation. --- .../src/main/rust/src/fermented.rs | 2 +- dash-sdk-bindings/src/fermented.rs | 2 +- dash-sdk-java/src/main/swig/app_connect.i | 4 + .../platform/sdk/TokenPurchaseBridgeTest.java | 27 ++ platform-mobile/src/lib.rs | 1 + platform-mobile/src/token_purchase.rs | 271 ++++++++++++++++++ 6 files changed, 305 insertions(+), 2 deletions(-) create mode 100644 dash-sdk-java/src/test/java/org/dashj/platform/sdk/TokenPurchaseBridgeTest.java create mode 100644 platform-mobile/src/token_purchase.rs diff --git a/dash-sdk-android/src/main/rust/src/fermented.rs b/dash-sdk-android/src/main/rust/src/fermented.rs index 14ea1803..65c73328 100644 --- a/dash-sdk-android/src/main/rust/src/fermented.rs +++ b/dash-sdk-android/src/main/rust/src/fermented.rs @@ -1 +1 @@ -# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod platform_value { use crate as dash_sdk_bindings ; pub mod eq { use crate as dash_sdk_bindings ; } pub mod replace { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } } pub mod index { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod macros { use crate as dash_sdk_bindings ; } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } } pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer_map { use crate as dash_sdk_bindings ; } pub mod safe_integer { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod conversion { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod config { use crate as dash_sdk_bindings ; pub mod moderation { use crate as dash_sdk_bindings ; pub mod reason { use crate as dash_sdk_bindings ; } pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod class_methods { use crate as dash_sdk_bindings ; pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod array { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod string_transformations { use crate as dash_sdk_bindings ; } } } pub mod reference_expression { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod outlives_delete { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod encode { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; } } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } } pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod convert { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } } pub mod vec { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod json_schema { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } pub mod methods { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod instant { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod witness { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod new { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod generate_document_id { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; pub mod consensus { use crate as dash_sdk_bindings ; pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod state { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } } pub mod basic { use crate as dash_sdk_bindings ; pub mod group { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } } pub mod non_consensus_error { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } pub mod group_action { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } pub mod extended_block_info { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod status { use crate as dash_sdk_bindings ; } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod executor { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod error { use crate as dash_sdk_bindings ; } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod verify { use crate as dash_sdk_bindings ; } pub mod unproved { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod platform { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod builders { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; } } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } pub mod contest_fund { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod transition { use crate as dash_sdk_bindings ; } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod readers { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } pub mod requests { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } pub mod epoch { use crate as dash_sdk_bindings ; } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } } pub mod sync { use crate as dash_sdk_bindings ; } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod core { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; } } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod system_contracts { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } pub mod queue { use crate as dash_sdk_bindings ; pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } } } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod operations { use crate as dash_sdk_bindings ; pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } } pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_group_action { use crate as dash_sdk_bindings ; } pub mod add_new_groups { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_groups { use crate as dash_sdk_bindings ; } pub mod for_add_group_action { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod burn_from_pool { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_elements { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod calculate_fee { use crate as dash_sdk_bindings ; } pub mod op { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file +# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod replace { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } } pub mod macros { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod bytes_36 { use crate as dash_sdk_bindings ; } } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod pointer { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_elements { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod vote_storage_form { use crate as dash_sdk_bindings ; } pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group { use crate as dash_sdk_bindings ; } pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; pub mod queue { use crate as dash_sdk_bindings ; pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod structs { use crate as dash_sdk_bindings ; pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod queries { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_chained_documents { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract { use crate as dash_sdk_bindings ; } pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod genesis_core_height { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod unshield { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod commit_transaction { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod calculate_fee { use crate as dash_sdk_bindings ; } pub mod op { use crate as dash_sdk_bindings ; } } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod platform { use crate as dash_sdk_bindings ; pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod requests { use crate as dash_sdk_bindings ; } pub mod readers { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } pub mod epoch { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } pub mod documents { use crate as dash_sdk_bindings ; pub mod contest_fund { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request_queries { use crate as dash_sdk_bindings ; } pub mod contact_request { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; } pub mod builders { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } } pub mod core { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod sync { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod withdrawal { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod consensus { use crate as dash_sdk_bindings ; pub mod fee { use crate as dash_sdk_bindings ; } pub mod basic { use crate as dash_sdk_bindings ; pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } } pub mod state { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } } pub mod non_consensus_error { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_public_key { use crate as dash_sdk_bindings ; pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod instant { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod contender { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } pub mod accessors { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod witness { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod traits { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } } pub mod common_fields { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod canonical { use crate as dash_sdk_bindings ; } pub mod convert { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod vec { use crate as dash_sdk_bindings ; } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod json_value { use crate as dash_sdk_bindings ; pub mod remove_path { use crate as dash_sdk_bindings ; } pub mod insert_with_path { use crate as dash_sdk_bindings ; } } pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod info { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod compile { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } } } pub mod validation_result { use crate as dash_sdk_bindings ; pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod flatten { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer_map { use crate as dash_sdk_bindings ; } pub mod safe_integer { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod outlives_delete { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod property { use crate as dash_sdk_bindings ; pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod string_transformations { use crate as dash_sdk_bindings ; } } } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod array { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod schema { use crate as dash_sdk_bindings ; pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } } pub mod group { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; } } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod encode { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod config { use crate as dash_sdk_bindings ; pub mod moderation { use crate as dash_sdk_bindings ; pub mod reason { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod fields { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod fee { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } } pub mod contract_group { use crate as dash_sdk_bindings ; } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod executor { use crate as dash_sdk_bindings ; } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod transport { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } } pub mod error { use crate as dash_sdk_bindings ; } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod verify { use crate as dash_sdk_bindings ; } pub mod unproved { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file diff --git a/dash-sdk-bindings/src/fermented.rs b/dash-sdk-bindings/src/fermented.rs index f4dd43da..bd4751cd 100644 --- a/dash-sdk-bindings/src/fermented.rs +++ b/dash-sdk-bindings/src/fermented.rs @@ -1 +1 @@ -# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod unproved { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod verify { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod executor { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod transport { use crate as dash_sdk_bindings ; } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod core { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod platform { use crate as dash_sdk_bindings ; pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } pub mod epoch { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } pub mod readers { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } pub mod contest_fund { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; } pub mod builders { use crate as dash_sdk_bindings ; } } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod sync { use crate as dash_sdk_bindings ; } pub mod internal_cache { use crate as dash_sdk_bindings ; } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod shield { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_group_action { use crate as dash_sdk_bindings ; } pub mod add_new_groups { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod queue { use crate as dash_sdk_bindings ; pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } } pub mod structs { use crate as dash_sdk_bindings ; pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_elements { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod moderation { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } } } pub mod dpp { use crate as dash_sdk_bindings ; # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod compile { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } } } pub mod validation_result { use crate as dash_sdk_bindings ; pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod convert { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } } pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod vec { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contender_structs { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod contender { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod votes { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } } } } pub mod document { use crate as dash_sdk_bindings ; pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod serialization_traits { use crate as dash_sdk_bindings ; pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } pub mod deserialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } } pub mod witness { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod state { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod basic { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod action_event { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod group_action { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; } } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod schema { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v3 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod property { use crate as dash_sdk_bindings ; pub mod array { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod string_transformations { use crate as dash_sdk_bindings ; } } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; pub mod time_range { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod outlives_delete { use crate as dash_sdk_bindings ; } } } pub mod config { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod moderation { use crate as dash_sdk_bindings ; pub mod elected { use crate as dash_sdk_bindings ; } pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod reason { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } } pub mod fee { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod emergency_action { use crate as dash_sdk_bindings ; } } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod memo { use crate as dash_sdk_bindings ; } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } } pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer_map { use crate as dash_sdk_bindings ; } pub mod safe_integer { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod instant { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod identity_public_key { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod credits_converter { use crate as dash_sdk_bindings ; } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod traits { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } } pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod pointer { use crate as dash_sdk_bindings ; } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod replace { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod index { use crate as dash_sdk_bindings ; } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod ser { use crate as dash_sdk_bindings ; } pub mod de { use crate as dash_sdk_bindings ; } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod macros { use crate as dash_sdk_bindings ; } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file +# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod platform_value { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } } pub mod bytes_32 { use crate as dash_sdk_bindings ; } } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod macros { use crate as dash_sdk_bindings ; } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod ser { use crate as dash_sdk_bindings ; } pub mod de { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; } pub mod eq { use crate as dash_sdk_bindings ; } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod executor { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod connection_pool { use crate as dash_sdk_bindings ; } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod basic { use crate as dash_sdk_bindings ; pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } } pub mod state { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod memo { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } } pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } } pub mod votes { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } } pub mod metadata { use crate as dash_sdk_bindings ; } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod util { use crate as dash_sdk_bindings ; pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod vec { use crate as dash_sdk_bindings ; } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod canonical { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod convert { use crate as dash_sdk_bindings ; } } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod action_event { use crate as dash_sdk_bindings ; } pub mod group_action { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer { use crate as dash_sdk_bindings ; } pub mod safe_integer_map { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; } } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod encode { use crate as dash_sdk_bindings ; } } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } } pub mod config { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; pub mod elected { use crate as dash_sdk_bindings ; } pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } pub mod reason { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod string_transformations { use crate as dash_sdk_bindings ; } } } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod array { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod index { use crate as dash_sdk_bindings ; pub mod time_range { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod outlives_delete { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod shielded { use crate as dash_sdk_bindings ; pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } } pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod state_transition_types { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod status { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod serialization_traits { use crate as dash_sdk_bindings ; pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } pub mod deserialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod withdrawal { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod instant { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity_public_key { use crate as dash_sdk_bindings ; pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } pub mod methods { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } } } pub mod block { use crate as dash_sdk_bindings ; pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod extended_block_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod token { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_document_history { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group { use crate as dash_sdk_bindings ; } pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; pub mod queue { use crate as dash_sdk_bindings ; pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod error { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } } pub mod unproved { use crate as dash_sdk_bindings ; } pub mod verify { use crate as dash_sdk_bindings ; } pub mod from_request { use crate as dash_sdk_bindings ; } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod core { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod sync { use crate as dash_sdk_bindings ; } pub mod platform { use crate as dash_sdk_bindings ; pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } pub mod contest_fund { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } pub mod epoch { use crate as dash_sdk_bindings ; } } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } pub mod readers { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod transition { use crate as dash_sdk_bindings ; } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request_queries { use crate as dash_sdk_bindings ; } pub mod contact_request { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod builders { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; } } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file diff --git a/dash-sdk-java/src/main/swig/app_connect.i b/dash-sdk-java/src/main/swig/app_connect.i index ce589751..003a4049 100644 --- a/dash-sdk-java/src/main/swig/app_connect.i +++ b/dash-sdk-java/src/main/swig/app_connect.i @@ -1,3 +1,7 @@ %rename(fetchContractGroupOwnerWithSdk) platform_mobile_app_connect_fetch_contract_group_owner_with_sdk; %rename(fetchPlatformTimeWithSdk) platform_mobile_app_connect_fetch_platform_time_with_sdk; %rename(deleteDocumentSdk) platform_mobile_app_connect_delete_document_sdk; +%rename(prepareTokenPurchaseSdk) platform_mobile_token_purchase_prepare_token_purchase_sdk; +%rename(submitTokenPurchaseSdk) platform_mobile_token_purchase_submit_token_purchase_sdk; +%newobject platform_mobile_token_purchase_prepare_token_purchase_sdk; +%newobject platform_mobile_token_purchase_submit_token_purchase_sdk; diff --git a/dash-sdk-java/src/test/java/org/dashj/platform/sdk/TokenPurchaseBridgeTest.java b/dash-sdk-java/src/test/java/org/dashj/platform/sdk/TokenPurchaseBridgeTest.java new file mode 100644 index 00000000..78cc2647 --- /dev/null +++ b/dash-sdk-java/src/test/java/org/dashj/platform/sdk/TokenPurchaseBridgeTest.java @@ -0,0 +1,27 @@ +package org.dashj.platform.sdk; + +import org.junit.Test; +import static org.junit.Assert.*; + +public class TokenPurchaseBridgeTest extends BaseTest { + @Test + public void rejectsMalformedOperationBytesAcrossJniWithoutNetworkAccess() { + Identifier owner = new Identifier(identifier); + try { + for (int i = 0; i < 100; i++) { + for (byte[] bytes : new byte[][]{new byte[0], new byte[]{(byte) 255}, new byte[4097]}) { + // Invalid payloads are rejected before an SDK handle or network is needed. + Result_ok_Vec_u8_err_String result = dashsdk.prepareTokenPurchaseSdk(null, bytes, owner); + try { + assertNotNull(result.getError()); + assertNull(result.getOk()); + } finally { + result.delete(); + } + } + } + } finally { + owner.delete(); + } + } +} diff --git a/platform-mobile/src/lib.rs b/platform-mobile/src/lib.rs index 900dc3e3..1731d5fc 100644 --- a/platform-mobile/src/lib.rs +++ b/platform-mobile/src/lib.rs @@ -16,5 +16,6 @@ pub mod sdk; pub mod state_transition; pub mod key_wallet; pub mod app_connect; +pub mod token_purchase; extern crate ferment_macro; diff --git a/platform-mobile/src/token_purchase.rs b/platform-mobile/src/token_purchase.rs new file mode 100644 index 00000000..ed1aa718 --- /dev/null +++ b/platform-mobile/src/token_purchase.rs @@ -0,0 +1,271 @@ +use crate::config::EntryPoint; +use crate::put::CallbackSigner; +use crate::sdk::DashSdk; +use dash_sdk::platform::tokens::builders::purchase::TokenDirectPurchaseTransitionBuilder; +use dash_sdk::platform::Fetch; +use dpp::data_contract::accessors::v1::DataContractV1Getters; +use dpp::data_contract::associated_token::token_configuration::accessors::v0::TokenConfigurationV0Getters; +use dpp::data_contract::associated_token::token_configuration_convention::accessors::v0::TokenConfigurationConventionV0Getters; +use dpp::data_contract::DataContract; +use dpp::identity::identity_public_key::accessors::v0::IdentityPublicKeyGettersV0; +use dpp::identity::identity_public_key::IdentityPublicKey; +use dpp::identity::{Purpose, SecurityLevel}; +use dpp::serialization::PlatformDeserializableUntrusted; +use dpp::state_transition::batch_transition::batched_transition::{ + token_transition::TokenTransition, BatchedTransition, +}; +use dpp::state_transition::batch_transition::token_base_transition::TokenBaseTransition; +use dpp::state_transition::batch_transition::token_direct_purchase_transition::TokenDirectPurchaseTransition; +use dpp::state_transition::batch_transition::BatchTransition; +use dpp::state_transition::StateTransition; +use platform_value::{string_encoding::Encoding, Identifier}; +use serde_json::json; +use std::sync::Arc; + +#[derive(Debug, PartialEq)] +struct Purchase { + owner: Identifier, + contract: Identifier, + token: Identifier, + position: u16, + amount: u64, + price: u64, +} + +fn decode(bytes: &[u8]) -> Result { + if bytes.is_empty() || bytes.len() > 4096 { + return Err("Invalid purchase payload size".into()); + } + let transition = StateTransition::deserialize_from_bytes_untrusted_exact(bytes) + .map_err(|e| e.to_string())?; + let StateTransition::Batch(BatchTransition::V1(batch)) = transition else { + return Err("Only a single token direct purchase is supported; login key registration, tips and other operations are not supported".into()); + }; + if batch.transitions.len() != 1 || batch.user_fee_increase != 0 || !batch.signature.is_empty() { + return Err("Purchase must be one unsigned operation with no fee increase".into()); + } + let BatchedTransition::Token(TokenTransition::DirectPurchase( + TokenDirectPurchaseTransition::V0(purchase), + )) = &batch.transitions[0] + else { + return Err("Only a single token direct purchase is supported".into()); + }; + let TokenBaseTransition::V0(base) = &purchase.base; + if base.using_group_info.is_some() + || purchase.token_count == 0 + || purchase.total_agreed_price == 0 + { + return Err("Grouped, empty or zero-price purchases are not supported".into()); + } + if base.token_id + != Identifier::from(dpp::tokens::calculate_token_id( + base.data_contract_id.as_bytes(), + base.token_contract_position, + )) + { + return Err("Token ID does not match its contract and position".into()); + } + Ok(Purchase { + owner: batch.owner_id, + contract: base.data_contract_id, + token: base.token_id, + position: base.token_contract_position, + amount: purchase.token_count, + price: purchase.total_agreed_price, + }) +} + +async fn contract_and_summary( + sdk: &dash_sdk::Sdk, + purchase: &Purchase, +) -> Result<(DataContract, Vec), String> { + let contract = DataContract::fetch(sdk, purchase.contract) + .await + .map_err(|e| e.to_string())? + .ok_or("Token contract not found")?; + let token = contract + .tokens() + .get(&purchase.position) + .ok_or("Token not found at contract position")?; + let conventions = token.conventions(); + let summary = json!({ + "ownerId": purchase.owner.to_string(Encoding::Base58), + "contractId": purchase.contract.to_string(Encoding::Base58), + "tokenId": purchase.token.to_string(Encoding::Base58), + "position": purchase.position, + "amount": purchase.amount.to_string(), "maximumCredits": purchase.price.to_string(), + "decimals": conventions.decimals(), + "name": conventions.singular_form_by_language_code_or_default("en") + }); + Ok(( + contract, + serde_json::to_vec(&summary).map_err(|e| e.to_string())?, + )) +} + +/// Exact, bounded decoding plus proof-verified token denomination. Never signs incoming bytes. +#[ferment_macro::export] +pub fn prepare_token_purchase_sdk( + rust_sdk: *mut DashSdk, + bytes: Vec, + owner: Identifier, +) -> Result, String> { + let purchase = decode(&bytes)?; + if purchase.owner != owner { + return Err("Purchase targets a different identity".into()); + } + let handle = unsafe { &*rust_sdk }; + handle.get_runtime().block_on(async { + contract_and_summary(&handle.get_sdk(), &purchase) + .await + .map(|(_, summary)| summary) + }) +} + +/// Rebuilds a purchase from approved values using a fresh nonce and the wallet's own key. +/// Success is a proof-verified affected-state result, not necessarily proof of this operation's execution. +#[ferment_macro::export] +pub fn submit_token_purchase_sdk( + rust_sdk: *mut DashSdk, + bytes: Vec, + approved_summary: Vec, + owner: Identifier, + signing_key: IdentityPublicKey, + signer_context: usize, + signer_callback: u64, +) -> Result, String> { + let purchase = decode(&bytes)?; + if purchase.owner != owner + || signer_callback == 0 + || signing_key.purpose() != Purpose::AUTHENTICATION + || signing_key.security_level() != SecurityLevel::CRITICAL + || signing_key.contract_bounds().is_some() + { + return Err( + "Purchase requires the approving identity's unbound CRITICAL authentication key".into(), + ); + } + let handle = unsafe { &*rust_sdk }; + handle.get_runtime().block_on(async { + let sdk = handle.get_sdk(); + let (contract, summary) = contract_and_summary(&sdk, &purchase).await?; + if summary != approved_summary { + return Err("Token metadata or purchase terms changed. Scan again.".into()); + } + let signer = + CallbackSigner::new(signer_context, signer_callback).map_err(|e| e.to_string())?; + sdk.token_purchase( + TokenDirectPurchaseTransitionBuilder::new( + Arc::new(contract), + purchase.position, + owner, + purchase.amount, + purchase.price, + ), + &signing_key, + &signer, + ) + .await + .map_err(|e| e.to_string())?; + Ok(b"submitted".to_vec()) + }) +} + +#[cfg(test)] +mod tests { + use super::*; + use dpp::serialization::PlatformSerializable; + use dpp::state_transition::batch_transition::token_base_transition::v0::TokenBaseTransitionV0; + use dpp::state_transition::batch_transition::token_direct_purchase_transition::TokenDirectPurchaseTransitionV0; + use dpp::state_transition::batch_transition::BatchTransitionV1; + + fn batch() -> BatchTransitionV1 { + let contract = Identifier::from([2; 32]); + BatchTransitionV1 { + owner_id: Identifier::from([1; 32]), + transitions: vec![BatchedTransition::Token(TokenTransition::DirectPurchase( + TokenDirectPurchaseTransition::V0(TokenDirectPurchaseTransitionV0 { + base: TokenBaseTransition::V0(TokenBaseTransitionV0 { + data_contract_id: contract, + token_contract_position: 0, + token_id: Identifier::from(dpp::tokens::calculate_token_id( + contract.as_bytes(), + 0, + )), + identity_contract_nonce: 42, + using_group_info: None, + }), + token_count: u64::MAX, + total_agreed_price: 50_000_000_000, + }), + ))], + ..Default::default() + } + } + fn encode(batch: BatchTransitionV1) -> Vec { + StateTransition::Batch(BatchTransition::V1(batch)) + .serialize_to_bytes() + .unwrap() + } + #[test] + fn decodes_single_purchase_without_losing_u64_precision() { + let parsed = decode(&encode(batch())).unwrap(); + assert_eq!(parsed.amount, u64::MAX); + assert_eq!(parsed.price, 50_000_000_000); + } + #[test] + fn rejects_multiple_operations_fee_increase_and_trailing_bytes() { + let mut multiple = batch(); + multiple.transitions.push(multiple.transitions[0].clone()); + assert!(decode(&encode(multiple)).is_err()); + let mut fee = batch(); + fee.user_fee_increase = 1; + assert!(decode(&encode(fee)).is_err()); + let mut trailing = encode(batch()); + trailing.push(0); + assert!(decode(&trailing).is_err()); + assert!(decode(&vec![0; 4097]).is_err()); + } + #[test] + fn rejects_wrong_token_id_and_zero_quantity() { + let mut wrong = batch(); + let BatchedTransition::Token(TokenTransition::DirectPurchase( + TokenDirectPurchaseTransition::V0(p), + )) = &mut wrong.transitions[0] + else { + unreachable!() + }; + let TokenBaseTransition::V0(base) = &mut p.base; + base.token_id = Identifier::from([9; 32]); + assert!(decode(&encode(wrong)).is_err()); + let mut zero = batch(); + let BatchedTransition::Token(TokenTransition::DirectPurchase( + TokenDirectPurchaseTransition::V0(p), + )) = &mut zero.transitions[0] + else { + unreachable!() + }; + p.token_count = 0; + assert!(decode(&encode(zero)).is_err()); + } + #[test] + fn rejects_signed_and_grouped_requests() { + let mut signed = batch(); + signed.signature = vec![1; 65].into(); + assert!(decode(&encode(signed)).is_err()); + let mut grouped = batch(); + let BatchedTransition::Token(TokenTransition::DirectPurchase( + TokenDirectPurchaseTransition::V0(p), + )) = &mut grouped.transitions[0] + else { + unreachable!() + }; + let TokenBaseTransition::V0(base) = &mut p.base; + base.using_group_info = Some(dpp::group::GroupStateTransitionInfo { + group_contract_position: 1, + action_id: Identifier::from([3; 32]), + action_is_proposer: true, + }); + assert!(decode(&encode(grouped)).is_err()); + } +} From 06b95e929e00cb6067f65db50dc86f25ff2ffdd1 Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Wed, 21 Oct 2026 15:43:47 -0700 Subject: [PATCH 07/21] fix: provision wallet signing keys and prove current application key index --- .../workflows/build-and-verify-alignment.yml | 12 +- README.md | 13 +- dash-sdk-android/build.gradle | 2 +- dash-sdk-android/src/main/cpp/CMakeLists.txt | 4 +- dash-sdk-android/src/main/rust/Cargo.lock | 282 +++++------------- dash-sdk-android/src/main/rust/Cargo.toml | 2 +- .../src/main/rust/rust-toolchain.toml | 2 +- .../src/main/rust/src/fermented.rs | 2 +- dash-sdk-bindings/Cargo.lock | 282 +++++------------- dash-sdk-bindings/Cargo.toml | 2 +- dash-sdk-bindings/src/fermented.rs | 2 +- dash-sdk-java/src/main/swig/app_connect.i | 2 + dash-sdk-java/src/main/swig/ignore.i | 2 + .../platform/sdk/TokenPurchaseBridgeTest.java | 14 + .../dashj/platform/dapiclient/DapiClient.kt | 10 + .../platform/dashpay/BlockchainIdentity.kt | 76 +++-- .../dashpay/AppConnectIdentityTest.kt | 77 +++++ platform-mobile/Cargo.lock | 280 +++++------------ platform-mobile/Cargo.toml | 8 +- platform-mobile/src/app_connect.rs | 31 ++ platform-revision.txt | 1 + 21 files changed, 467 insertions(+), 639 deletions(-) create mode 100644 dpp/src/test/kotlin/org/dashj/platform/dashpay/AppConnectIdentityTest.kt create mode 100644 platform-revision.txt diff --git a/.github/workflows/build-and-verify-alignment.yml b/.github/workflows/build-and-verify-alignment.yml index df018824..82105c83 100644 --- a/.github/workflows/build-and-verify-alignment.yml +++ b/.github/workflows/build-and-verify-alignment.yml @@ -46,7 +46,9 @@ jobs: ${{ runner.os }}-gradle- - name: clone platform repo - run: git clone --branch ferment-5.0 https://github.com/HashEngineering/platform.git ../platform + run: | + git clone --branch ferment-5.0 https://github.com/HashEngineering/platform.git ../platform + git -C ../platform checkout --detach "$(cat platform-revision.txt)" - name: clone rs-x11-hash repo run: git clone --branch feat/add-android-support https://github.com/hashengineering/rs-x11-hash.git ../rs-x11-hash @@ -75,7 +77,7 @@ jobs: echo "PROTOC_INCLUDE=$HOME/.local/include" >> $GITHUB_ENV - name: Install cbindgen - run: cargo install cbindgen + run: cargo install cbindgen --version 0.29.0 --locked - name: generate the header file run: | @@ -91,9 +93,9 @@ jobs: - name: Install Cargo NDK and Rust targets run: | - cargo install cargo-ndk --version "^3" - rustup component add rust-src --toolchain nightly - rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android --toolchain nightly + cargo install cargo-ndk --version 4.1.2 --locked + rustup toolchain install nightly-2026-09-24 --profile minimal --component rust-src + rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android --toolchain nightly-2026-09-24 - name: Build CMake run: ./gradlew cmakeClean cmakeConfigure cmakeBuild diff --git a/README.md b/README.md index 0c3a6147..d91497e9 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,17 @@ kotlin-platform is the library that supports Platform functionality for the Java * _tools_ - a module that contains the WalletTool program ## Build Instructions +The sibling `../platform` checkout must use `HashEngineering/platform`, branch +`ferment-5.0`, at the commit in `platform-revision.txt`. This includes upstream +Platform `v5.0.0-rc.7` and the Ferment/JNI compatibility patches. CI uses the same +revision; the Platform commit must be pushed before running CI for an updated pin. +Desktop Rust uses `1.98.1`; Android uses `nightly-2026-09-24` with `rust-src`. + +```bash +git clone --branch ferment-5.0 https://github.com/HashEngineering/platform.git ../platform +git -C ../platform checkout --detach "$(cat platform-revision.txt)" +``` + See [dash-sdk-bindings readme](dash-sdk-bindings/README.md) for build instructions of the basic bindings system. Perform these steps first. @@ -69,4 +80,4 @@ Currently only building for Android on a Mac is supported. | **Mac (x86_64)** | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | | **Linux (arm64)** | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | N/A | | **Linux (x86_64)** | No 32-bit support Crashes | No Crashes | No 32-bit support Crashes | No Crashes | N/A | N/A | N/A | N/A | N/A | -| **Windows (x86_64)** | Not supported | Not supported | Not supported | Not supported | Not Tested | N/A | N/A | N/A | N/A | \ No newline at end of file +| **Windows (x86_64)** | Not supported | Not supported | Not supported | Not supported | Not Tested | N/A | N/A | N/A | N/A | diff --git a/dash-sdk-android/build.gradle b/dash-sdk-android/build.gradle index 15a92649..461ddf70 100644 --- a/dash-sdk-android/build.gradle +++ b/dash-sdk-android/build.gradle @@ -85,7 +85,7 @@ task buildRustRelease() { workingDir 'src/main/rust' // Adjust to the path of your Rust project relative to your Android project environment "CARGO_TARGET_DIR", "target" //environment "CARGO_FEATURE_STD", 1 // this is to trick indexmap v1.9.3, among others - commandLine 'cargo', '+nightly', 'ndk', '-t', abi, '--platform', '24', 'build', '--release', '-Zbuild-std' + commandLine 'cargo', '+nightly-2026-09-24', 'ndk', '-t', abi, '--platform', '24', 'build', '--release', '-Zbuild-std' // Uncomment the next line if you need verbose output for debugging // commandLine 'cargo', '+nightly', 'ndk', '-t', abi, '-o', outputPath, '--platform', '24', 'build', '--release', '-Zbuild-std', '-vv' } diff --git a/dash-sdk-android/src/main/cpp/CMakeLists.txt b/dash-sdk-android/src/main/cpp/CMakeLists.txt index fd0c2883..cc603d45 100644 --- a/dash-sdk-android/src/main/cpp/CMakeLists.txt +++ b/dash-sdk-android/src/main/cpp/CMakeLists.txt @@ -41,7 +41,7 @@ set(RUST_SOURCE_DIR "${CMAKE_SOURCE_DIR}/../rust") # Override with -DCARGO_TARGET_DIR=/path if needed. if(NOT DEFINED CARGO_TARGET_DIR) execute_process( - COMMAND cargo +nightly metadata --format-version 1 --no-deps + COMMAND cargo +nightly-2026-09-24 metadata --format-version 1 --no-deps WORKING_DIRECTORY ${RUST_SOURCE_DIR} OUTPUT_VARIABLE CARGO_METADATA RESULT_VARIABLE CARGO_METADATA_RESULT @@ -72,7 +72,7 @@ set(RUSTFLAGS_16KB "-C link-arg=-Wl,-z,max-page-size=16384") add_custom_command( OUTPUT ${RUST_LIB_OUTPUT_PATH} COMMAND ${CMAKE_COMMAND} -E touch ${RUST_SOURCE_DIR}/Cargo.toml - COMMAND ${CMAKE_COMMAND} -E env CARGO_TARGET_DIR=${CARGO_TARGET_DIR} RUSTFLAGS=${RUSTFLAGS_16KB} cargo +nightly ndk -t ${RUST_TARGET_TRIPLE} --platform ${ANDROID_API_LEVEL} build --release -Zbuild-std + COMMAND ${CMAKE_COMMAND} -E env CARGO_TARGET_DIR=${CARGO_TARGET_DIR} RUSTFLAGS=${RUSTFLAGS_16KB} cargo +nightly-2026-09-24 ndk -t ${RUST_TARGET_TRIPLE} --platform ${ANDROID_API_LEVEL} build --release -Zbuild-std WORKING_DIRECTORY ${RUST_SOURCE_DIR} COMMENT "Building Rust library with cargo ndk" DEPENDS ${RUST_PROJECT_FILES} diff --git a/dash-sdk-android/src/main/rust/Cargo.lock b/dash-sdk-android/src/main/rust/Cargo.lock index 7c993510..179e03d9 100644 --- a/dash-sdk-android/src/main/rust/Cargo.lock +++ b/dash-sdk-android/src/main/rust/Cargo.lock @@ -127,7 +127,7 @@ checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" [[package]] name = "app-connect-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -272,26 +272,6 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32637268377fc7b10a8c6d51de3e7fba1ce5dd371a96e342b34e6078db558e7f" -[[package]] -name = "bincode" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36eaf5d7b090263e8150820482d5d93cd964a81e4019913c972f4edcc6edb740" -dependencies = [ - "bincode_derive", - "serde", - "unty", -] - -[[package]] -name = "bincode_derive" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf95709a440f45e986983918d0e8a1f30a9b1df04918fc828670606804ac3c09" -dependencies = [ - "virtue 0.0.18", -] - [[package]] name = "bip37-bloom-filter" version = "0.1.0" @@ -828,13 +808,14 @@ dependencies = [ [[package]] name = "dapi-grpc" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "dash-platform-macros", "futures-core", "getrandom", "platform-version", "prost 0.14.4", + "prost-build", "serde", "serde_bytes", "serde_json", @@ -881,7 +862,7 @@ dependencies = [ [[package]] name = "dash-async" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "futures", "thiserror 2.0.18", @@ -892,7 +873,7 @@ dependencies = [ [[package]] name = "dash-context-provider" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "dash-async", "dpp", @@ -902,21 +883,10 @@ dependencies = [ "thiserror 1.0.64", ] -[[package]] -name = "dash-network" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "bincode", - "bincode_derive", - "cbindgen 0.29.4", - "serde", -] - [[package]] name = "dash-network" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ "cbindgen 0.29.4", "grovedb-bincode", @@ -927,14 +897,14 @@ dependencies = [ [[package]] name = "dash-network-seeds" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ - "dash-network 0.45.0", + "dash-network", ] [[package]] name = "dash-platform-macros" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "heck 0.5.0", "quote", @@ -943,7 +913,7 @@ dependencies = [ [[package]] name = "dash-platform-queries" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -960,7 +930,7 @@ dependencies = [ [[package]] name = "dash-sdk" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "arc-swap", "async-trait", @@ -1004,7 +974,7 @@ version = "4.0.1" dependencies = [ "cbindgen 0.26.0", "dash-sdk", - "dashcore 0.43.0", + "dashcore", "dpp", "drive", "drive-proof-verifier", @@ -1016,34 +986,10 @@ dependencies = [ "platform-value", ] -[[package]] -name = "dashcore" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "anyhow", - "base64-compat", - "bech32 0.9.1", - "bincode", - "bincode_derive", - "bitvec", - "blake3", - "dash-network 0.43.0", - "dashcore-private 0.43.0", - "dashcore_hashes 0.43.0", - "hex", - "hex_lit", - "rustversion", - "secp256k1", - "serde", - "thiserror 2.0.18", - "tracing", -] - [[package]] name = "dashcore" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ "anyhow", "base64-compat", @@ -1051,9 +997,9 @@ dependencies = [ "bitvec", "blake3", "blsful", - "dash-network 0.45.0", - "dashcore-private 0.45.0", - "dashcore_hashes 0.45.0", + "dash-network", + "dashcore-private", + "dashcore_hashes", "ed25519-dalek", "grovedb-bincode", "grovedb-bincode-derive", @@ -1066,35 +1012,17 @@ dependencies = [ "tracing", ] -[[package]] -name = "dashcore-private" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" - [[package]] name = "dashcore-private" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" - -[[package]] -name = "dashcore-rpc" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "dashcore-rpc-json 0.43.0", - "hex", - "jsonrpc", - "serde", - "serde_json", - "tracing", -] +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" [[package]] name = "dashcore-rpc" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ - "dashcore-rpc-json 0.45.0", + "dashcore-rpc-json", "hex", "jsonrpc", "serde", @@ -1102,59 +1030,34 @@ dependencies = [ "tracing", ] -[[package]] -name = "dashcore-rpc-json" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "bincode", - "dashcore 0.43.0", - "hex", - "key-wallet 0.43.0", - "serde", - "serde_json", - "serde_repr", - "serde_with", -] - [[package]] name = "dashcore-rpc-json" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ - "dashcore 0.45.0", + "dashcore", "grovedb-bincode", "hex", - "key-wallet 0.45.0", + "key-wallet", "serde", "serde_json", "serde_repr", "serde_with", ] -[[package]] -name = "dashcore_hashes" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "bincode", - "dashcore-private 0.43.0", - "serde", -] - [[package]] name = "dashcore_hashes" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ - "dashcore-private 0.45.0", + "dashcore-private", "grovedb-bincode", "serde", ] [[package]] name = "dashpay-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -1164,7 +1067,7 @@ dependencies = [ [[package]] name = "data-contracts" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "app-connect-contract", "dashpay-contract", @@ -1256,7 +1159,7 @@ dependencies = [ [[package]] name = "document-history-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -1272,7 +1175,7 @@ checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" [[package]] name = "dpns-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -1282,7 +1185,7 @@ dependencies = [ [[package]] name = "dpp" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "anyhow", "async-trait", @@ -1293,8 +1196,8 @@ dependencies = [ "chrono", "chrono-tz", "ciborium", - "dashcore 0.45.0", - "dashcore-rpc 0.45.0", + "dashcore", + "dashcore-rpc", "data-contracts", "derive_more 1.0.0", "dpp-json-convertible-derive", @@ -1306,7 +1209,7 @@ dependencies = [ "indexmap 2.14.0", "integer-encoding", "itertools 0.13.0", - "key-wallet 0.45.0", + "key-wallet", "lazy_static", "libm", "nohash-hasher", @@ -1330,7 +1233,7 @@ dependencies = [ [[package]] name = "dpp-json-convertible-derive" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "proc-macro2", "quote", @@ -1339,7 +1242,7 @@ dependencies = [ [[package]] name = "drive" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "byteorder", "derive_more 1.0.0", @@ -1367,7 +1270,7 @@ dependencies = [ [[package]] name = "drive-proof-verifier" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -1817,8 +1720,8 @@ dependencies = [ [[package]] name = "grovedb" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "blake3", "grovedb-bincode", @@ -1860,8 +1763,8 @@ dependencies = [ [[package]] name = "grovedb-bulk-append-tree" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "blake3", "grovedb-bincode", @@ -1877,8 +1780,8 @@ dependencies = [ [[package]] name = "grovedb-costs" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "integer-encoding", "intmap", @@ -1887,8 +1790,8 @@ dependencies = [ [[package]] name = "grovedb-dense-fixed-sized-merkle-tree" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "blake3", "grovedb-bincode", @@ -1900,8 +1803,8 @@ dependencies = [ [[package]] name = "grovedb-element" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "grovedb-bincode", "grovedb-bincode-derive", @@ -1915,8 +1818,8 @@ dependencies = [ [[package]] name = "grovedb-epoch-based-storage-flags" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "grovedb-costs", "hex", @@ -1927,8 +1830,8 @@ dependencies = [ [[package]] name = "grovedb-merk" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "blake3", "byteorder", @@ -1949,8 +1852,8 @@ dependencies = [ [[package]] name = "grovedb-merkle-mountain-range" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "blake3", "grovedb-bincode", @@ -1960,16 +1863,16 @@ dependencies = [ [[package]] name = "grovedb-path" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "hex", ] [[package]] name = "grovedb-query" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "byteorder", "ed", @@ -1982,8 +1885,8 @@ dependencies = [ [[package]] name = "grovedb-version" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "thiserror 2.0.18", "versioned-feature-core", @@ -1991,8 +1894,8 @@ dependencies = [ [[package]] name = "grovedb-visualize" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "hex", "itertools 0.14.0", @@ -2455,41 +2358,18 @@ dependencies = [ "cpufeatures", ] -[[package]] -name = "key-wallet" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "async-trait", - "base58ck", - "bip39", - "bitflags 2.13.0", - "dashcore 0.43.0", - "dashcore-private 0.43.0", - "dashcore_hashes 0.43.0", - "getrandom", - "hex", - "secp256k1", - "serde", - "serde_json", - "sha2", - "tracing", - "unicode-normalization", - "zeroize", -] - [[package]] name = "key-wallet" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ "async-trait", "base58ck", "bip39", "bitflags 2.13.0", - "dashcore 0.45.0", - "dashcore-private 0.45.0", - "dashcore_hashes 0.45.0", + "dashcore", + "dashcore-private", + "dashcore_hashes", "getrandom", "hex", "secp256k1", @@ -2503,7 +2383,7 @@ dependencies = [ [[package]] name = "keyword-search-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -2577,7 +2457,7 @@ dependencies = [ [[package]] name = "masternode-reward-shares-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -2636,7 +2516,7 @@ dependencies = [ [[package]] name = "moderation-charters-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -3007,7 +2887,7 @@ dependencies = [ [[package]] name = "platform-encryption" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "aes", "cbc", @@ -3025,9 +2905,9 @@ dependencies = [ "base64 0.13.1", "dapi-grpc", "dash-sdk", - "dashcore 0.43.0", - "dashcore-rpc 0.43.0", - "dashcore_hashes 0.43.0", + "dashcore", + "dashcore-rpc", + "dashcore_hashes", "dashpay-contract", "data-contracts", "dotenvy", @@ -3040,7 +2920,7 @@ dependencies = [ "ferment-macro 0.2.3", "hex", "http 0.2.12", - "key-wallet 0.43.0", + "key-wallet", "lazy_static", "libc", "lru 0.12.5", @@ -3065,7 +2945,7 @@ dependencies = [ [[package]] name = "platform-serialization" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "grovedb-bincode", "platform-version", @@ -3073,7 +2953,7 @@ dependencies = [ [[package]] name = "platform-serialization-derive" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "proc-macro2", "quote", @@ -3083,7 +2963,7 @@ dependencies = [ [[package]] name = "platform-value" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "base64 0.22.1", "bs58", @@ -3104,7 +2984,7 @@ dependencies = [ [[package]] name = "platform-version" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "ferment-macro 0.2.3", "grovedb-bincode", @@ -3116,7 +2996,7 @@ dependencies = [ [[package]] name = "platform-versioning" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "proc-macro2", "quote", @@ -3388,7 +3268,7 @@ dependencies = [ [[package]] name = "rs-dapi-client" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "backon", "chrono", @@ -3781,7 +3661,7 @@ checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" [[package]] name = "simple-signer" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "async-trait", "base64 0.22.1", @@ -4153,7 +4033,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "token-history-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -4724,7 +4604,7 @@ dependencies = [ [[package]] name = "wallet-utils-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -5003,7 +4883,7 @@ checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1" [[package]] name = "withdrawals-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "num_enum 0.5.11", "platform-value", diff --git a/dash-sdk-android/src/main/rust/Cargo.toml b/dash-sdk-android/src/main/rust/Cargo.toml index 729f90d5..b4698451 100644 --- a/dash-sdk-android/src/main/rust/Cargo.toml +++ b/dash-sdk-android/src/main/rust/Cargo.toml @@ -21,7 +21,7 @@ dashcore = { git = "https://github.com/dashpay/rust-dashcore", features = [ "rand", "signer", "serde", -], default-features = false, rev = "981e97f1015960ae5d277afdabcba1cbbc0b3a63" } +], default-features = false, rev = "d631aaca3632cc713143476e363c9a9aca038d2e" } drive = { path = "../../../../../platform/packages/rs-drive", default-features = false, features = [ "verify", "serde", diff --git a/dash-sdk-android/src/main/rust/rust-toolchain.toml b/dash-sdk-android/src/main/rust/rust-toolchain.toml index 24fa29ce..d760631f 100644 --- a/dash-sdk-android/src/main/rust/rust-toolchain.toml +++ b/dash-sdk-android/src/main/rust/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] # Rust version the same as in /README.md -channel = "nightly" +channel = "nightly-2026-09-24" diff --git a/dash-sdk-android/src/main/rust/src/fermented.rs b/dash-sdk-android/src/main/rust/src/fermented.rs index 65c73328..9a2e860f 100644 --- a/dash-sdk-android/src/main/rust/src/fermented.rs +++ b/dash-sdk-android/src/main/rust/src/fermented.rs @@ -1 +1 @@ -# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod replace { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } } pub mod macros { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod bytes_36 { use crate as dash_sdk_bindings ; } } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod pointer { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_elements { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod vote_storage_form { use crate as dash_sdk_bindings ; } pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group { use crate as dash_sdk_bindings ; } pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; pub mod queue { use crate as dash_sdk_bindings ; pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod structs { use crate as dash_sdk_bindings ; pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod queries { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_chained_documents { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract { use crate as dash_sdk_bindings ; } pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod genesis_core_height { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod unshield { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod commit_transaction { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod calculate_fee { use crate as dash_sdk_bindings ; } pub mod op { use crate as dash_sdk_bindings ; } } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod platform { use crate as dash_sdk_bindings ; pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod requests { use crate as dash_sdk_bindings ; } pub mod readers { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } pub mod epoch { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } pub mod documents { use crate as dash_sdk_bindings ; pub mod contest_fund { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request_queries { use crate as dash_sdk_bindings ; } pub mod contact_request { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; } pub mod builders { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } } pub mod core { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod sync { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod withdrawal { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod consensus { use crate as dash_sdk_bindings ; pub mod fee { use crate as dash_sdk_bindings ; } pub mod basic { use crate as dash_sdk_bindings ; pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } } pub mod state { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } } pub mod non_consensus_error { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_public_key { use crate as dash_sdk_bindings ; pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod instant { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod contender { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } pub mod accessors { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod witness { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod traits { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } } pub mod common_fields { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod canonical { use crate as dash_sdk_bindings ; } pub mod convert { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod vec { use crate as dash_sdk_bindings ; } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod json_value { use crate as dash_sdk_bindings ; pub mod remove_path { use crate as dash_sdk_bindings ; } pub mod insert_with_path { use crate as dash_sdk_bindings ; } } pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod info { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod compile { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } } } pub mod validation_result { use crate as dash_sdk_bindings ; pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod flatten { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer_map { use crate as dash_sdk_bindings ; } pub mod safe_integer { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod outlives_delete { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod property { use crate as dash_sdk_bindings ; pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod string_transformations { use crate as dash_sdk_bindings ; } } } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod array { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod schema { use crate as dash_sdk_bindings ; pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } } pub mod group { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; } } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod encode { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod config { use crate as dash_sdk_bindings ; pub mod moderation { use crate as dash_sdk_bindings ; pub mod reason { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod fields { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod fee { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } } pub mod contract_group { use crate as dash_sdk_bindings ; } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod executor { use crate as dash_sdk_bindings ; } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod transport { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } } pub mod error { use crate as dash_sdk_bindings ; } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod verify { use crate as dash_sdk_bindings ; } pub mod unproved { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file +# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod platform_value { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod eq { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_32 { use crate as dash_sdk_bindings ; } } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod macros { use crate as dash_sdk_bindings ; } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod index { use crate as dash_sdk_bindings ; } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod transport { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod sync { use crate as dash_sdk_bindings ; } pub mod core { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod dash_core_client { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod platform { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod transition { use crate as dash_sdk_bindings ; } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod readers { use crate as dash_sdk_bindings ; } pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod burn { use crate as dash_sdk_bindings ; } } pub mod builders { use crate as dash_sdk_bindings ; } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } pub mod contested_queries { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } pub mod epoch { use crate as dash_sdk_bindings ; } } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } pub mod contest_fund { use crate as dash_sdk_bindings ; } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod identities_contract_keys_query { use crate as dash_sdk_bindings ; } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod address_sync { use crate as dash_sdk_bindings ; } } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_current_contract_key_id_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_current_contract_key_id_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id) , purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod unproved { use crate as dash_sdk_bindings ; } pub mod verify { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod from_request { use crate as dash_sdk_bindings ; } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod compile { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod withdrawal { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } pub mod accessors { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod config { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod moderation { use crate as dash_sdk_bindings ; pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } pub mod reason { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod encode { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; } pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration { use crate as dash_sdk_bindings ; # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod document_type { use crate as dash_sdk_bindings ; pub mod property { use crate as dash_sdk_bindings ; pub mod array { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod string_transformations { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod reference_where { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod time_range { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod outlives_delete { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod schema { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod expand_property_type_shorthands { use crate as dash_sdk_bindings ; } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fee { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_array_elements_for_document_type { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } } pub mod util { use crate as dash_sdk_bindings ; pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod vec { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod convert { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod bls { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod group_action { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transitions")] pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod info { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod status { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod consensus { use crate as dash_sdk_bindings ; pub mod fee { use crate as dash_sdk_bindings ; } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod state { use crate as dash_sdk_bindings ; pub mod state_error { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } } pub mod basic { use crate as dash_sdk_bindings ; pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } } } pub mod non_consensus_error { use crate as dash_sdk_bindings ; } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer_map { use crate as dash_sdk_bindings ; } pub mod safe_integer { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } } pub mod traits { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith , Contains , ContainsAny } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith , drive_query_conditions_WhereOperator :: Contains => drive :: query :: conditions :: WhereOperator :: Contains , drive_query_conditions_WhereOperator :: ContainsAny => drive :: query :: conditions :: WhereOperator :: ContainsAny } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , drive :: query :: conditions :: WhereOperator :: Contains => drive_query_conditions_WhereOperator :: Contains , drive :: query :: conditions :: WhereOperator :: ContainsAny => drive_query_conditions_WhereOperator :: ContainsAny , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , drive_query_conditions_WhereOperator :: Contains => { } , drive_query_conditions_WhereOperator :: ContainsAny => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Contains_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Contains { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_ContainsAny_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: ContainsAny { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod batch { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod rekey_unsigned_integer_index_values { use crate as dash_sdk_bindings ; } pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod queue { use crate as dash_sdk_bindings ; pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_group_action { use crate as dash_sdk_bindings ; } pub mod add_new_groups { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } } pub mod info { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group { use crate as dash_sdk_bindings ; } pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod backfill_historical_credit_pool_nullifiers { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod token { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file diff --git a/dash-sdk-bindings/Cargo.lock b/dash-sdk-bindings/Cargo.lock index efab5dd0..a24ceff1 100644 --- a/dash-sdk-bindings/Cargo.lock +++ b/dash-sdk-bindings/Cargo.lock @@ -101,7 +101,7 @@ checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" [[package]] name = "app-connect-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -234,26 +234,6 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32637268377fc7b10a8c6d51de3e7fba1ce5dd371a96e342b34e6078db558e7f" -[[package]] -name = "bincode" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36eaf5d7b090263e8150820482d5d93cd964a81e4019913c972f4edcc6edb740" -dependencies = [ - "bincode_derive", - "serde", - "unty", -] - -[[package]] -name = "bincode_derive" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf95709a440f45e986983918d0e8a1f30a9b1df04918fc828670606804ac3c09" -dependencies = [ - "virtue 0.0.18", -] - [[package]] name = "bip37-bloom-filter" version = "0.1.0" @@ -799,13 +779,14 @@ dependencies = [ [[package]] name = "dapi-grpc" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "dash-platform-macros", "futures-core", "getrandom 0.2.17", "platform-version", "prost 0.14.4", + "prost-build", "serde", "serde_bytes", "serde_json", @@ -852,7 +833,7 @@ dependencies = [ [[package]] name = "dash-async" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "futures", "thiserror 2.0.18", @@ -863,7 +844,7 @@ dependencies = [ [[package]] name = "dash-context-provider" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "dash-async", "dpp", @@ -873,21 +854,10 @@ dependencies = [ "thiserror 1.0.69", ] -[[package]] -name = "dash-network" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "bincode", - "bincode_derive", - "cbindgen 0.29.4", - "serde", -] - [[package]] name = "dash-network" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ "cbindgen 0.29.4", "grovedb-bincode", @@ -898,14 +868,14 @@ dependencies = [ [[package]] name = "dash-network-seeds" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ - "dash-network 0.45.0", + "dash-network", ] [[package]] name = "dash-platform-macros" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "heck 0.5.0", "quote", @@ -914,7 +884,7 @@ dependencies = [ [[package]] name = "dash-platform-queries" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -931,7 +901,7 @@ dependencies = [ [[package]] name = "dash-sdk" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "arc-swap", "async-trait", @@ -975,7 +945,7 @@ version = "4.0.1" dependencies = [ "cbindgen 0.26.0", "dash-sdk", - "dashcore 0.43.0", + "dashcore", "dpp", "drive", "drive-proof-verifier", @@ -987,34 +957,10 @@ dependencies = [ "toml 0.8.23", ] -[[package]] -name = "dashcore" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "anyhow", - "base64-compat", - "bech32 0.9.1", - "bincode", - "bincode_derive", - "bitvec", - "blake3", - "dash-network 0.43.0", - "dashcore-private 0.43.0", - "dashcore_hashes 0.43.0", - "hex", - "hex_lit", - "rustversion", - "secp256k1", - "serde", - "thiserror 2.0.18", - "tracing", -] - [[package]] name = "dashcore" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ "anyhow", "base64-compat", @@ -1022,9 +968,9 @@ dependencies = [ "bitvec", "blake3", "blsful", - "dash-network 0.45.0", - "dashcore-private 0.45.0", - "dashcore_hashes 0.45.0", + "dash-network", + "dashcore-private", + "dashcore_hashes", "ed25519-dalek", "grovedb-bincode", "grovedb-bincode-derive", @@ -1037,35 +983,17 @@ dependencies = [ "tracing", ] -[[package]] -name = "dashcore-private" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" - [[package]] name = "dashcore-private" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" - -[[package]] -name = "dashcore-rpc" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "dashcore-rpc-json 0.43.0", - "hex", - "jsonrpc", - "serde", - "serde_json", - "tracing", -] +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" [[package]] name = "dashcore-rpc" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ - "dashcore-rpc-json 0.45.0", + "dashcore-rpc-json", "hex", "jsonrpc", "serde", @@ -1073,59 +1001,34 @@ dependencies = [ "tracing", ] -[[package]] -name = "dashcore-rpc-json" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "bincode", - "dashcore 0.43.0", - "hex", - "key-wallet 0.43.0", - "serde", - "serde_json", - "serde_repr", - "serde_with", -] - [[package]] name = "dashcore-rpc-json" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ - "dashcore 0.45.0", + "dashcore", "grovedb-bincode", "hex", - "key-wallet 0.45.0", + "key-wallet", "serde", "serde_json", "serde_repr", "serde_with", ] -[[package]] -name = "dashcore_hashes" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "bincode", - "dashcore-private 0.43.0", - "serde", -] - [[package]] name = "dashcore_hashes" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ - "dashcore-private 0.45.0", + "dashcore-private", "grovedb-bincode", "serde", ] [[package]] name = "dashpay-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -1135,7 +1038,7 @@ dependencies = [ [[package]] name = "data-contracts" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "app-connect-contract", "dashpay-contract", @@ -1240,7 +1143,7 @@ dependencies = [ [[package]] name = "document-history-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -1256,7 +1159,7 @@ checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" [[package]] name = "dpns-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -1266,7 +1169,7 @@ dependencies = [ [[package]] name = "dpp" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "anyhow", "async-trait", @@ -1277,8 +1180,8 @@ dependencies = [ "chrono", "chrono-tz", "ciborium", - "dashcore 0.45.0", - "dashcore-rpc 0.45.0", + "dashcore", + "dashcore-rpc", "data-contracts", "derive_more 1.0.0", "dpp-json-convertible-derive", @@ -1290,7 +1193,7 @@ dependencies = [ "indexmap 2.13.0", "integer-encoding", "itertools 0.13.0", - "key-wallet 0.45.0", + "key-wallet", "lazy_static", "libm", "nohash-hasher", @@ -1314,7 +1217,7 @@ dependencies = [ [[package]] name = "dpp-json-convertible-derive" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "proc-macro2", "quote", @@ -1323,7 +1226,7 @@ dependencies = [ [[package]] name = "drive" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "byteorder", "derive_more 1.0.0", @@ -1351,7 +1254,7 @@ dependencies = [ [[package]] name = "drive-proof-verifier" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -1791,8 +1694,8 @@ dependencies = [ [[package]] name = "grovedb" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "blake3", "grovedb-bincode", @@ -1834,8 +1737,8 @@ dependencies = [ [[package]] name = "grovedb-bulk-append-tree" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "blake3", "grovedb-bincode", @@ -1851,8 +1754,8 @@ dependencies = [ [[package]] name = "grovedb-costs" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "integer-encoding", "intmap", @@ -1861,8 +1764,8 @@ dependencies = [ [[package]] name = "grovedb-dense-fixed-sized-merkle-tree" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "blake3", "grovedb-bincode", @@ -1874,8 +1777,8 @@ dependencies = [ [[package]] name = "grovedb-element" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "grovedb-bincode", "grovedb-bincode-derive", @@ -1889,8 +1792,8 @@ dependencies = [ [[package]] name = "grovedb-epoch-based-storage-flags" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "grovedb-costs", "hex", @@ -1901,8 +1804,8 @@ dependencies = [ [[package]] name = "grovedb-merk" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "blake3", "byteorder", @@ -1923,8 +1826,8 @@ dependencies = [ [[package]] name = "grovedb-merkle-mountain-range" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "blake3", "grovedb-bincode", @@ -1934,16 +1837,16 @@ dependencies = [ [[package]] name = "grovedb-path" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "hex", ] [[package]] name = "grovedb-query" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "byteorder", "ed", @@ -1956,8 +1859,8 @@ dependencies = [ [[package]] name = "grovedb-version" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "thiserror 2.0.18", "versioned-feature-core", @@ -1965,8 +1868,8 @@ dependencies = [ [[package]] name = "grovedb-visualize" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "hex", "itertools 0.14.0", @@ -2525,41 +2428,18 @@ dependencies = [ "cpufeatures", ] -[[package]] -name = "key-wallet" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "async-trait", - "base58ck", - "bip39", - "bitflags 2.10.0", - "dashcore 0.43.0", - "dashcore-private 0.43.0", - "dashcore_hashes 0.43.0", - "getrandom 0.2.17", - "hex", - "secp256k1", - "serde", - "serde_json", - "sha2", - "tracing", - "unicode-normalization", - "zeroize", -] - [[package]] name = "key-wallet" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ "async-trait", "base58ck", "bip39", "bitflags 2.10.0", - "dashcore 0.45.0", - "dashcore-private 0.45.0", - "dashcore_hashes 0.45.0", + "dashcore", + "dashcore-private", + "dashcore_hashes", "getrandom 0.2.17", "hex", "secp256k1", @@ -2573,7 +2453,7 @@ dependencies = [ [[package]] name = "keyword-search-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -2658,7 +2538,7 @@ dependencies = [ [[package]] name = "masternode-reward-shares-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -2716,7 +2596,7 @@ dependencies = [ [[package]] name = "moderation-charters-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -3079,7 +2959,7 @@ dependencies = [ [[package]] name = "platform-encryption" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "aes", "cbc", @@ -3097,9 +2977,9 @@ dependencies = [ "base64 0.13.1", "dapi-grpc", "dash-sdk", - "dashcore 0.43.0", - "dashcore-rpc 0.43.0", - "dashcore_hashes 0.43.0", + "dashcore", + "dashcore-rpc", + "dashcore_hashes", "dashpay-contract", "data-contracts", "dotenvy", @@ -3112,7 +2992,7 @@ dependencies = [ "ferment-macro", "hex", "http 0.2.12", - "key-wallet 0.43.0", + "key-wallet", "lazy_static", "libc", "lru 0.12.5", @@ -3137,7 +3017,7 @@ dependencies = [ [[package]] name = "platform-serialization" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "grovedb-bincode", "platform-version", @@ -3145,7 +3025,7 @@ dependencies = [ [[package]] name = "platform-serialization-derive" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "proc-macro2", "quote", @@ -3155,7 +3035,7 @@ dependencies = [ [[package]] name = "platform-value" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "base64 0.22.1", "bs58", @@ -3176,7 +3056,7 @@ dependencies = [ [[package]] name = "platform-version" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "ferment-macro", "grovedb-bincode", @@ -3188,7 +3068,7 @@ dependencies = [ [[package]] name = "platform-versioning" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "proc-macro2", "quote", @@ -3474,7 +3354,7 @@ dependencies = [ [[package]] name = "rs-dapi-client" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "backon", "chrono", @@ -3861,7 +3741,7 @@ checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2" [[package]] name = "simple-signer" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "async-trait", "base64 0.22.1", @@ -4238,7 +4118,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "token-history-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -4834,7 +4714,7 @@ dependencies = [ [[package]] name = "wallet-utils-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -5244,7 +5124,7 @@ checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" [[package]] name = "withdrawals-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "num_enum 0.5.11", "platform-value", diff --git a/dash-sdk-bindings/Cargo.toml b/dash-sdk-bindings/Cargo.toml index c2c2b8db..9930bdbd 100644 --- a/dash-sdk-bindings/Cargo.toml +++ b/dash-sdk-bindings/Cargo.toml @@ -26,7 +26,7 @@ dashcore = { git = "https://github.com/dashpay/rust-dashcore", features = [ "rand", "signer", "serde", -], default-features = false, rev = "981e97f1015960ae5d277afdabcba1cbbc0b3a63" } +], default-features = false, rev = "d631aaca3632cc713143476e363c9a9aca038d2e" } [build-dependencies] cbindgen = "0.26.0" #ferment-sys = { git = "https://github.com/dashpay/ferment", tag = "v0.2.3", package = "ferment-sys", features = ["cbindgen_only"] } diff --git a/dash-sdk-bindings/src/fermented.rs b/dash-sdk-bindings/src/fermented.rs index bd4751cd..a7e0b917 100644 --- a/dash-sdk-bindings/src/fermented.rs +++ b/dash-sdk-bindings/src/fermented.rs @@ -1 +1 @@ -# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod platform_value { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } } pub mod bytes_32 { use crate as dash_sdk_bindings ; } } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod macros { use crate as dash_sdk_bindings ; } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod ser { use crate as dash_sdk_bindings ; } pub mod de { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; } pub mod eq { use crate as dash_sdk_bindings ; } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod executor { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod connection_pool { use crate as dash_sdk_bindings ; } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod basic { use crate as dash_sdk_bindings ; pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } } pub mod state { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod memo { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } } pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } } pub mod votes { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } } pub mod metadata { use crate as dash_sdk_bindings ; } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod util { use crate as dash_sdk_bindings ; pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod vec { use crate as dash_sdk_bindings ; } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod canonical { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod convert { use crate as dash_sdk_bindings ; } } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod action_event { use crate as dash_sdk_bindings ; } pub mod group_action { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer { use crate as dash_sdk_bindings ; } pub mod safe_integer_map { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; } } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod encode { use crate as dash_sdk_bindings ; } } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } } pub mod config { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; pub mod elected { use crate as dash_sdk_bindings ; } pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } pub mod reason { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod string_transformations { use crate as dash_sdk_bindings ; } } } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod array { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod index { use crate as dash_sdk_bindings ; pub mod time_range { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod outlives_delete { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod shielded { use crate as dash_sdk_bindings ; pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } } pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod state_transition_types { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod status { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod serialization_traits { use crate as dash_sdk_bindings ; pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } pub mod deserialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod withdrawal { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod instant { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity_public_key { use crate as dash_sdk_bindings ; pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } pub mod methods { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } } } pub mod block { use crate as dash_sdk_bindings ; pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod extended_block_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod token { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_document_history { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group { use crate as dash_sdk_bindings ; } pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; pub mod queue { use crate as dash_sdk_bindings ; pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod error { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } } pub mod unproved { use crate as dash_sdk_bindings ; } pub mod verify { use crate as dash_sdk_bindings ; } pub mod from_request { use crate as dash_sdk_bindings ; } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod core { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod sync { use crate as dash_sdk_bindings ; } pub mod platform { use crate as dash_sdk_bindings ; pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } pub mod contest_fund { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } pub mod epoch { use crate as dash_sdk_bindings ; } } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } pub mod readers { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod transition { use crate as dash_sdk_bindings ; } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request_queries { use crate as dash_sdk_bindings ; } pub mod contact_request { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod builders { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; } } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file +# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod backfill_historical_credit_pool_nullifiers { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group { use crate as dash_sdk_bindings ; } pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod queue { use crate as dash_sdk_bindings ; pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract { use crate as dash_sdk_bindings ; } pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } pub mod rekey_unsigned_integer_index_values { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod vote_storage_form { use crate as dash_sdk_bindings ; } pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_elements { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod calculate_fee { use crate as dash_sdk_bindings ; } pub mod op { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith , Contains , ContainsAny } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith , drive_query_conditions_WhereOperator :: Contains => drive :: query :: conditions :: WhereOperator :: Contains , drive_query_conditions_WhereOperator :: ContainsAny => drive :: query :: conditions :: WhereOperator :: ContainsAny } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , drive :: query :: conditions :: WhereOperator :: Contains => drive_query_conditions_WhereOperator :: Contains , drive :: query :: conditions :: WhereOperator :: ContainsAny => drive_query_conditions_WhereOperator :: ContainsAny , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , drive_query_conditions_WhereOperator :: Contains => { } , drive_query_conditions_WhereOperator :: ContainsAny => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Contains_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Contains { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_ContainsAny_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: ContainsAny { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod system_contracts { use crate as dash_sdk_bindings ; } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_current_contract_key_id_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_current_contract_key_id_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id) , purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod macros { use crate as dash_sdk_bindings ; } pub mod eq { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod types { use crate as dash_sdk_bindings ; pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transitions")] pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod errors { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } } } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod state_transition_types { use crate as dash_sdk_bindings ; } } pub mod bls { use crate as dash_sdk_bindings ; } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod new { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod basic { use crate as dash_sdk_bindings ; pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod state { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod conversion { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod config { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; pub mod elected { use crate as dash_sdk_bindings ; } pub mod reason { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } pub mod document_removal { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; } pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod index { use crate as dash_sdk_bindings ; pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod outlives_delete { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod reference_where { use crate as dash_sdk_bindings ; } pub mod array { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod string_transformations { use crate as dash_sdk_bindings ; } } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod expand_property_type_shorthands { use crate as dash_sdk_bindings ; } } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer_map { use crate as dash_sdk_bindings ; } pub mod safe_integer { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } } pub mod withdrawal { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod metadata { use crate as dash_sdk_bindings ; } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } } pub mod identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod action_event { use crate as dash_sdk_bindings ; } pub mod group_action { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } pub mod deserialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_array_elements_for_document_type { use crate as dash_sdk_bindings ; } } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fee { use crate as dash_sdk_bindings ; pub mod default_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod util { use crate as dash_sdk_bindings ; pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod canonical { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod convert { use crate as dash_sdk_bindings ; } } pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod vec { use crate as dash_sdk_bindings ; } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod address_list { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod connection_pool { use crate as dash_sdk_bindings ; } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod platform { use crate as dash_sdk_bindings ; pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod readers { use crate as dash_sdk_bindings ; } pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request_queries { use crate as dash_sdk_bindings ; } pub mod contact_request { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod documents { use crate as dash_sdk_bindings ; pub mod contest_fund { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod burn { use crate as dash_sdk_bindings ; } } pub mod builders { use crate as dash_sdk_bindings ; } } pub mod identities_contract_keys_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } pub mod contested_queries { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } } pub mod sync { use crate as dash_sdk_bindings ; } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod core { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod dash_core_client { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } } pub mod verify { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod unproved { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file diff --git a/dash-sdk-java/src/main/swig/app_connect.i b/dash-sdk-java/src/main/swig/app_connect.i index 003a4049..73e2326d 100644 --- a/dash-sdk-java/src/main/swig/app_connect.i +++ b/dash-sdk-java/src/main/swig/app_connect.i @@ -1,5 +1,7 @@ %rename(fetchContractGroupOwnerWithSdk) platform_mobile_app_connect_fetch_contract_group_owner_with_sdk; %rename(fetchPlatformTimeWithSdk) platform_mobile_app_connect_fetch_platform_time_with_sdk; +%rename(fetchCurrentContractKeyIdWithSdk) platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk; +%newobject platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk; %rename(deleteDocumentSdk) platform_mobile_app_connect_delete_document_sdk; %rename(prepareTokenPurchaseSdk) platform_mobile_token_purchase_prepare_token_purchase_sdk; %rename(submitTokenPurchaseSdk) platform_mobile_token_purchase_submit_token_purchase_sdk; diff --git a/dash-sdk-java/src/main/swig/ignore.i b/dash-sdk-java/src/main/swig/ignore.i index 45d2e2e8..bac932ac 100644 --- a/dash-sdk-java/src/main/swig/ignore.i +++ b/dash-sdk-java/src/main/swig/ignore.i @@ -98,6 +98,8 @@ %ignore drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor(); %ignore drive_query_conditions_WhereOperator_In_ctor(); %ignore drive_query_conditions_WhereOperator_StartsWith_ctor(); +%ignore drive_query_conditions_WhereOperator_Contains_ctor(); +%ignore drive_query_conditions_WhereOperator_ContainsAny_ctor(); %ignore drive_query_conditions_WhereOperator_destroy(drive_query_conditions_WhereOperator *ffi); %ignore drive_query_conditions_WhereClause_ctor(char *field, drive_query_conditions_WhereOperator *operator_, platform_value_Value *value); %ignore drive_query_conditions_WhereClause_destroy(drive_query_conditions_WhereClause *ffi); diff --git a/dash-sdk-java/src/test/java/org/dashj/platform/sdk/TokenPurchaseBridgeTest.java b/dash-sdk-java/src/test/java/org/dashj/platform/sdk/TokenPurchaseBridgeTest.java index 78cc2647..79ac143b 100644 --- a/dash-sdk-java/src/test/java/org/dashj/platform/sdk/TokenPurchaseBridgeTest.java +++ b/dash-sdk-java/src/test/java/org/dashj/platform/sdk/TokenPurchaseBridgeTest.java @@ -4,6 +4,20 @@ import static org.junit.Assert.*; public class TokenPurchaseBridgeTest extends BaseTest { + @Test + public void currentContractKeyQueryRejectsNonEncryptionPurposesBeforeSdkAccess() { + Identifier owner = new Identifier(identifier); + try { + for (long purpose : new long[]{0, 3, 0xffffffffL}) { + Result_ok_Vec_u8_err_String result = dashsdk.fetchCurrentContractKeyIdWithSdk(null, owner, owner, purpose); + try { + assertNotNull(result.getError()); + assertNull(result.getOk()); + } finally { result.delete(); } + } + } finally { owner.delete(); } + } + @Test public void rejectsMalformedOperationBytesAcrossJniWithoutNetworkAccess() { Identifier owner = new Identifier(identifier); diff --git a/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt b/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt index 877b8e79..3ac97397 100644 --- a/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt +++ b/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt @@ -1164,6 +1164,16 @@ class DapiClient @JvmOverloads constructor( return dashsdk.fetchPlatformTimeWithSdk(rustSdk, identityId.toNative()).unwrap() } + /** The proved current contract-key ID, not a guess based on identity key order. */ + fun getCurrentContractKeyId(identityId: Identifier, contractId: Identifier, purpose: org.dashj.platform.sdk.Purpose): Int? { + val result = dashsdk.fetchCurrentContractKeyIdWithSdk(rustSdk, identityId.toNative(), contractId.toNative(), purpose.swigValue().toLong()) + try { + check(result.error == null) { result.error.orEmpty() } + val bytes = checkNotNull(result.ok) + return if (bytes.isEmpty()) null else String(bytes, Charsets.UTF_8).toInt() + } finally { result.delete() } + } + /** Null denotes no stored budget; callers should first verify the key exists. */ fun getIdentityKeyRemainingBudget(identityId: Identifier, keyId: Int): java.math.BigInteger? { val budget = dashsdk.fetchIdentityKeyRemainingBudgetWithSdk( diff --git a/dpp/src/main/java/org/dashj/platform/dashpay/BlockchainIdentity.kt b/dpp/src/main/java/org/dashj/platform/dashpay/BlockchainIdentity.kt index c8c735f6..6842044f 100644 --- a/dpp/src/main/java/org/dashj/platform/dashpay/BlockchainIdentity.kt +++ b/dpp/src/main/java/org/dashj/platform/dashpay/BlockchainIdentity.kt @@ -740,6 +740,15 @@ class BlockchainIdentity { contractBounds = null, byteArrayOf(), false + ), + IdentityPublicKey( + 4, + KeyType.ECDSA_SECP256K1, + Purpose.AUTHENTICATION, + SecurityLevel.CRITICAL, + contractBounds = null, + byteArrayOf(), + false ) ) @@ -756,9 +765,9 @@ class BlockchainIdentity { privateKeyAtIndex(2, KeyType.ECDSA_SECP256K1, keyParameter) ) { "key must exist" } -// val criticalAuthenticationKey = checkNotNull( -// privateKeyAtIndex(4, KeyType.ECDSA_SECP256K1, keyParameter) -// ) { "key must exist" } + val criticalAuthenticationKey = checkNotNull( + privateKeyAtIndex(4, KeyType.ECDSA_SECP256K1, keyParameter) + ) { "key must exist" } val criticalTransferKey = checkNotNull( privateKeyAtIndex(3, KeyType.ECDSA_SECP256K1, keyParameter) @@ -804,18 +813,14 @@ class BlockchainIdentity { false ) -// val criticalAuthKey = IdentityPublicKey( -// 4, -// KeyType.ECDSA_SECP256K1, -// Purpose.AUTHENTICATION, -// SecurityLevel.CRITICAL, -// criticalAuthenticationKey.pubKey, -// false -// ) + val criticalAuthKey = IdentityPublicKey( + 4, KeyType.ECDSA_SECP256K1, Purpose.AUTHENTICATION, SecurityLevel.CRITICAL, + contractBounds = null, criticalAuthenticationKey.pubKey, false + ) return Pair( - listOf(masterPrivateKey, highPrivateKey, encryptionPrivateKey/*, criticalAuthenticationKey,*/, criticalTransferKey), - listOf(masterKey, highKey, encryptionKey/*, criticalAuthKey*/, transferKey) + listOf(masterPrivateKey, highPrivateKey, encryptionPrivateKey, criticalTransferKey, criticalAuthenticationKey), + listOf(masterKey, highKey, encryptionKey, transferKey, criticalAuthKey) ) } @@ -829,11 +834,36 @@ class BlockchainIdentity { fun hasEncryptionKey() = getIdentityPublicKey(Purpose.ENCRYPTION, SecurityLevel.MEDIUM) != null + fun hasCriticalAuthenticationKey() = identity?.publicKeys?.any { + it.purpose == Purpose.AUTHENTICATION && it.securityLevel == SecurityLevel.CRITICAL && + it.contractBounds == null && it.disabledAt == null && it.expiresAt == null && controlsIdentityKey(it) + } == true + + private fun controlsIdentityKey(key: IdentityPublicKey): Boolean = + if (key.type == KeyType.ECDSA_HASH160) authenticationGroup?.identityKeyChain?.findKeyFromPubHash(key.data) != null + else authenticationGroup?.identityKeyChain?.findKeyFromPubKey(key.data) != null + + /** Constructs a wallet-only key at an unused Platform ID to fence a delayed registration. */ + fun createRevocationFenceKey(keyId: Int, keyParameter: KeyParameter?, reserved: List = emptyList()): IdentityPublicKey { + val current = checkNotNull(identity) + require(current.publicKeys.none { it.id == keyId }) { "Fence ID is already occupied" } + // Preserve the wallet's identity-ID -> derivation-index mapping for seed recovery. + val key = checkNotNull(maybeDecryptKey(keyId, KeyType.ECDSA_SECP256K1, keyParameter)) + require((current.publicKeys + reserved).none { it.data.contentEquals(key.pubKey) || it.data.contentEquals(key.pubKeyHash) }) { + "Wallet key is already in use. The pending registration was not fenced." + } + return IdentityPublicKey(keyId, KeyType.ECDSA_SECP256K1, Purpose.AUTHENTICATION, + SecurityLevel.HIGH, null, key.pubKey, false) + } + private fun determineMissingKeys(): List { checkState(identity != null) return defaultKeyList.filter { defaultKey -> identity!!.publicKeys.find { - it.type == defaultKey.type && it.purpose == defaultKey.purpose + it.type == defaultKey.type && it.purpose == defaultKey.purpose && + it.securityLevel == defaultKey.securityLevel && it.contractBounds == null && + it.disabledAt == null && it.expiresAt == null && + (defaultKey.purpose != Purpose.AUTHENTICATION || defaultKey.securityLevel != SecurityLevel.CRITICAL || controlsIdentityKey(it)) } == null } } @@ -842,10 +872,13 @@ class BlockchainIdentity { signer: WalletSignerCallback ) { platform.identities.get(uniqueIdentifier)?.let { updatedIdentity -> + identity = updatedIdentity val missingKeys = determineMissingKeys() - val addPublicKeys = missingKeys.map { - createIdentityPublicKey(updatedIdentity, it, signer.keyParameter) ?: - error("missing private key for ${it.id} when determining missing keys") + if (missingKeys.isEmpty()) return + val firstId = updatedIdentity.publicKeys.maxOf { it.id } + 1 + val addPublicKeys = missingKeys.mapIndexed { index, template -> + createIdentityPublicKey(updatedIdentity, template, signer.keyParameter, firstId + index) ?: + error("missing private key for ${template.id} when determining missing keys") } addPublicKeys.forEach { it.validate() @@ -872,10 +905,10 @@ class BlockchainIdentity { private fun createIdentityPublicKey( updatedIdentity: Identity, template: IdentityPublicKey, - keyParameter: KeyParameter? + keyParameter: KeyParameter?, + nextKeyId: Int = updatedIdentity.publicKeys.maxOf { it.id } + 1 ): IdentityPublicKey? { checkArgument(updatedIdentity.publicKeys.isNotEmpty()) - val nextKeyId = updatedIdentity.publicKeys.maxOf { it.id } + 1 return maybeDecryptKey(nextKeyId, KeyType.ECDSA_SECP256K1, keyParameter)?.let { privateKey -> IdentityPublicKey( id = nextKeyId, @@ -1493,6 +1526,11 @@ class BlockchainIdentity { ) encryptedKey } + // getKeyByPath can populate the hierarchy without importing the child + // into the signer lookup. Newly provisioned keys must be signable now. + if (authenticationChain.findKeyFromPubKey(key.pubKey) == null) { + authenticationGroup!!.addNewKey(AuthenticationKeyChain.KeyChainType.BLOCKCHAIN_IDENTITY, key) + } return key as ECKey? } else -> throw IllegalArgumentException("$type is not supported") diff --git a/dpp/src/test/kotlin/org/dashj/platform/dashpay/AppConnectIdentityTest.kt b/dpp/src/test/kotlin/org/dashj/platform/dashpay/AppConnectIdentityTest.kt new file mode 100644 index 00000000..a2611784 --- /dev/null +++ b/dpp/src/test/kotlin/org/dashj/platform/dashpay/AppConnectIdentityTest.kt @@ -0,0 +1,77 @@ +package org.dashj.platform.dashpay + +import org.bitcoinj.params.TestNet3Params +import org.bitcoinj.wallet.* +import org.bitcoinj.wallet.authentication.AuthenticationGroupExtension +import org.dashj.platform.dpp.identifier.Identifier +import org.dashj.platform.dpp.identity.Identity +import org.dashj.platform.dpp.identity.IdentityPublicKey +import org.dashj.platform.sdk.Purpose +import org.dashj.platform.sdk.SecurityLevel +import org.dashj.platform.sdk.KeyType +import org.dashj.platform.sdk.platform.Platform +import org.dashj.platform.dashpay.callback.WalletSignerCallback +import org.junit.jupiter.api.Assertions.* +import org.junit.jupiter.api.Test +import org.bouncycastle.crypto.params.KeyParameter +import java.util.EnumSet + +class AppConnectIdentityTest { + companion object { init { System.loadLibrary("sdklib") } } + private val params = TestNet3Params.get() + private val platform = Platform(params) + private val seed = DeterministicSeed(ByteArray(32) { 7 }, "", 1_700_000_000L) + private val wallet = Wallet(params, KeyChainGroup.builder(params).addChain( + DeterministicKeyChain.builder().seed(seed).build()).build()) + private val extension = AuthenticationGroupExtension(params).also { + it.addKeyChains(params, seed, EnumSet.of(AuthenticationKeyChain.KeyChainType.BLOCKCHAIN_IDENTITY)) + wallet.addExtension(it) + } + private val identity = BlockchainIdentity(platform, 0, wallet, extension) + + @Suppress("UNCHECKED_CAST") + private fun newKeys(): List { + val method = BlockchainIdentity::class.java.getDeclaredMethod("createIdentityPublicKeys", KeyParameter::class.java) + method.isAccessible = true + return (method.invoke(identity, null) as Pair<*, List>).second + } + + @Test fun defaultIdentityIncludesWalletControlledCriticalAuthentication() { + val keys = newKeys() + val critical = keys.single { it.purpose == Purpose.AUTHENTICATION && it.securityLevel == SecurityLevel.CRITICAL } + assertNull(critical.contractBounds) + assertEquals(5, keys.size) + assertEquals(5, keys.map { it.id }.distinct().size) + assertEquals(5, keys.map { it.data.toList() }.distinct().size) + assertNotNull(extension.identityKeyChain.findKeyFromPubKey(critical.data)) + WalletSignerCallback(wallet, null).use { signer -> + assertTrue(signer.sign(critical.data, byteArrayOf(1, 2, 3)).isNotEmpty()) + } + identity.identity = Identity(Identifier.from(ByteArray(32) { 1 }), keys, 1000000, 0, 14) + assertTrue(identity.hasCriticalAuthenticationKey()) + identity.identity!!.publicKeys.remove(critical) + assertFalse(identity.hasCriticalAuthenticationKey()) + val method = BlockchainIdentity::class.java.getDeclaredMethod("determineMissingKeys").also { it.isAccessible = true } + @Suppress("UNCHECKED_CAST") val missing = method.invoke(identity) as List + assertEquals(listOf(SecurityLevel.CRITICAL), missing.map { it.securityLevel }) + } + + @Test fun fenceUsesMissingIdButNeverAppMaterialOrAnExistingWalletKey() { + val keys = newKeys() + val foreign = IdentityPublicKey(10, KeyType.ECDSA_HASH160, Purpose.AUTHENTICATION, + SecurityLevel.HIGH, null, ByteArray(20) { 99 }, false) + identity.identity = Identity(Identifier.from(ByteArray(32) { 1 }), keys.filter { it.id != 4 } + foreign, 1000000, 0, 14) + val first = identity.createRevocationFenceKey(4, null) + val second = identity.createRevocationFenceKey(9, null, listOf(first)) + assertEquals(4, first.id) + assertNull(first.contractBounds) + assertEquals(SecurityLevel.HIGH, first.securityLevel) + assertFalse(first.data.contentEquals(second.data)) + assertTrue(identity.identity!!.publicKeys.none { it.data.contentEquals(first.data) }) + assertNotNull(extension.identityKeyChain.findKeyFromPubKey(first.data)) + WalletSignerCallback(wallet, null).use { signer -> + assertTrue(signer.sign(first.data, byteArrayOf(1, 2, 3)).isNotEmpty()) + } + assertThrows(IllegalArgumentException::class.java) { identity.createRevocationFenceKey(0, null) } + } +} diff --git a/platform-mobile/Cargo.lock b/platform-mobile/Cargo.lock index 49ddcf39..49d824dc 100644 --- a/platform-mobile/Cargo.lock +++ b/platform-mobile/Cargo.lock @@ -127,7 +127,7 @@ checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" [[package]] name = "app-connect-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -272,26 +272,6 @@ version = "0.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32637268377fc7b10a8c6d51de3e7fba1ce5dd371a96e342b34e6078db558e7f" -[[package]] -name = "bincode" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36eaf5d7b090263e8150820482d5d93cd964a81e4019913c972f4edcc6edb740" -dependencies = [ - "bincode_derive", - "serde", - "unty", -] - -[[package]] -name = "bincode_derive" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf95709a440f45e986983918d0e8a1f30a9b1df04918fc828670606804ac3c09" -dependencies = [ - "virtue 0.0.18", -] - [[package]] name = "bip37-bloom-filter" version = "0.1.0" @@ -777,13 +757,14 @@ dependencies = [ [[package]] name = "dapi-grpc" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "dash-platform-macros", "futures-core", "getrandom", "platform-version", "prost 0.14.4", + "prost-build", "serde", "serde_bytes", "serde_json", @@ -830,7 +811,7 @@ dependencies = [ [[package]] name = "dash-async" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "futures", "thiserror 2.0.18", @@ -841,7 +822,7 @@ dependencies = [ [[package]] name = "dash-context-provider" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "dash-async", "dpp", @@ -851,21 +832,10 @@ dependencies = [ "thiserror 1.0.64", ] -[[package]] -name = "dash-network" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "bincode", - "bincode_derive", - "cbindgen 0.29.4", - "serde", -] - [[package]] name = "dash-network" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ "cbindgen 0.29.4", "grovedb-bincode", @@ -876,14 +846,14 @@ dependencies = [ [[package]] name = "dash-network-seeds" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ - "dash-network 0.45.0", + "dash-network", ] [[package]] name = "dash-platform-macros" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "heck 0.5.0", "quote", @@ -892,7 +862,7 @@ dependencies = [ [[package]] name = "dash-platform-queries" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -909,7 +879,7 @@ dependencies = [ [[package]] name = "dash-sdk" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "arc-swap", "async-trait", @@ -947,34 +917,10 @@ dependencies = [ "zeroize", ] -[[package]] -name = "dashcore" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "anyhow", - "base64-compat", - "bech32 0.9.1", - "bincode", - "bincode_derive", - "bitvec", - "blake3", - "dash-network 0.43.0", - "dashcore-private 0.43.0", - "dashcore_hashes 0.43.0", - "hex", - "hex_lit", - "rustversion", - "secp256k1", - "serde", - "thiserror 2.0.18", - "tracing", -] - [[package]] name = "dashcore" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ "anyhow", "base64-compat", @@ -982,9 +928,9 @@ dependencies = [ "bitvec", "blake3", "blsful", - "dash-network 0.45.0", - "dashcore-private 0.45.0", - "dashcore_hashes 0.45.0", + "dash-network", + "dashcore-private", + "dashcore_hashes", "ed25519-dalek", "grovedb-bincode", "grovedb-bincode-derive", @@ -997,35 +943,17 @@ dependencies = [ "tracing", ] -[[package]] -name = "dashcore-private" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" - [[package]] name = "dashcore-private" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" - -[[package]] -name = "dashcore-rpc" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "dashcore-rpc-json 0.43.0", - "hex", - "jsonrpc", - "serde", - "serde_json", - "tracing", -] +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" [[package]] name = "dashcore-rpc" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ - "dashcore-rpc-json 0.45.0", + "dashcore-rpc-json", "hex", "jsonrpc", "serde", @@ -1033,59 +961,34 @@ dependencies = [ "tracing", ] -[[package]] -name = "dashcore-rpc-json" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "bincode", - "dashcore 0.43.0", - "hex", - "key-wallet 0.43.0", - "serde", - "serde_json", - "serde_repr", - "serde_with", -] - [[package]] name = "dashcore-rpc-json" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ - "dashcore 0.45.0", + "dashcore", "grovedb-bincode", "hex", - "key-wallet 0.45.0", + "key-wallet", "serde", "serde_json", "serde_repr", "serde_with", ] -[[package]] -name = "dashcore_hashes" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "bincode", - "dashcore-private 0.43.0", - "serde", -] - [[package]] name = "dashcore_hashes" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ - "dashcore-private 0.45.0", + "dashcore-private", "grovedb-bincode", "serde", ] [[package]] name = "dashpay-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -1095,7 +998,7 @@ dependencies = [ [[package]] name = "data-contracts" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "app-connect-contract", "dashpay-contract", @@ -1187,7 +1090,7 @@ dependencies = [ [[package]] name = "document-history-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -1203,7 +1106,7 @@ checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" [[package]] name = "dpns-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -1213,7 +1116,7 @@ dependencies = [ [[package]] name = "dpp" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "anyhow", "async-trait", @@ -1224,8 +1127,8 @@ dependencies = [ "chrono", "chrono-tz", "ciborium", - "dashcore 0.45.0", - "dashcore-rpc 0.45.0", + "dashcore", + "dashcore-rpc", "data-contracts", "derive_more 1.0.0", "dpp-json-convertible-derive", @@ -1237,7 +1140,7 @@ dependencies = [ "indexmap 2.14.0", "integer-encoding", "itertools 0.13.0", - "key-wallet 0.45.0", + "key-wallet", "lazy_static", "libm", "nohash-hasher", @@ -1261,7 +1164,7 @@ dependencies = [ [[package]] name = "dpp-json-convertible-derive" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "proc-macro2", "quote", @@ -1270,7 +1173,7 @@ dependencies = [ [[package]] name = "drive" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "byteorder", "derive_more 1.0.0", @@ -1298,7 +1201,7 @@ dependencies = [ [[package]] name = "drive-proof-verifier" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -1717,8 +1620,8 @@ dependencies = [ [[package]] name = "grovedb" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "blake3", "grovedb-bincode", @@ -1760,8 +1663,8 @@ dependencies = [ [[package]] name = "grovedb-bulk-append-tree" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "blake3", "grovedb-bincode", @@ -1777,8 +1680,8 @@ dependencies = [ [[package]] name = "grovedb-costs" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "integer-encoding", "intmap", @@ -1787,8 +1690,8 @@ dependencies = [ [[package]] name = "grovedb-dense-fixed-sized-merkle-tree" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "blake3", "grovedb-bincode", @@ -1800,8 +1703,8 @@ dependencies = [ [[package]] name = "grovedb-element" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "grovedb-bincode", "grovedb-bincode-derive", @@ -1815,8 +1718,8 @@ dependencies = [ [[package]] name = "grovedb-epoch-based-storage-flags" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "grovedb-costs", "hex", @@ -1827,8 +1730,8 @@ dependencies = [ [[package]] name = "grovedb-merk" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "blake3", "byteorder", @@ -1849,8 +1752,8 @@ dependencies = [ [[package]] name = "grovedb-merkle-mountain-range" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "blake3", "grovedb-bincode", @@ -1860,16 +1763,16 @@ dependencies = [ [[package]] name = "grovedb-path" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "hex", ] [[package]] name = "grovedb-query" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "byteorder", "ed", @@ -1882,8 +1785,8 @@ dependencies = [ [[package]] name = "grovedb-version" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "thiserror 2.0.18", "versioned-feature-core", @@ -1891,8 +1794,8 @@ dependencies = [ [[package]] name = "grovedb-visualize" -version = "6.0.1" -source = "git+https://github.com/dashpay/grovedb?rev=9791d277207998b7789c85b0745e99d37040a12e#9791d277207998b7789c85b0745e99d37040a12e" +version = "6.1.1" +source = "git+https://github.com/dashpay/grovedb?rev=2128ea18f9b1c2f9502f99967b1b1c6485c91f8b#2128ea18f9b1c2f9502f99967b1b1c6485c91f8b" dependencies = [ "hex", "itertools 0.14.0", @@ -2355,41 +2258,18 @@ dependencies = [ "cpufeatures", ] -[[package]] -name = "key-wallet" -version = "0.43.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=981e97f1015960ae5d277afdabcba1cbbc0b3a63#981e97f1015960ae5d277afdabcba1cbbc0b3a63" -dependencies = [ - "async-trait", - "base58ck", - "bip39", - "bitflags 2.13.0", - "dashcore 0.43.0", - "dashcore-private 0.43.0", - "dashcore_hashes 0.43.0", - "getrandom", - "hex", - "secp256k1", - "serde", - "serde_json", - "sha2", - "tracing", - "unicode-normalization", - "zeroize", -] - [[package]] name = "key-wallet" version = "0.45.0" -source = "git+https://github.com/dashpay/rust-dashcore?rev=40268cc0402a8933ec539f16b2d634c4e25876ad#40268cc0402a8933ec539f16b2d634c4e25876ad" +source = "git+https://github.com/dashpay/rust-dashcore?rev=d631aaca3632cc713143476e363c9a9aca038d2e#d631aaca3632cc713143476e363c9a9aca038d2e" dependencies = [ "async-trait", "base58ck", "bip39", "bitflags 2.13.0", - "dashcore 0.45.0", - "dashcore-private 0.45.0", - "dashcore_hashes 0.45.0", + "dashcore", + "dashcore-private", + "dashcore_hashes", "getrandom", "hex", "secp256k1", @@ -2403,7 +2283,7 @@ dependencies = [ [[package]] name = "keyword-search-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -2477,7 +2357,7 @@ dependencies = [ [[package]] name = "masternode-reward-shares-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -2536,7 +2416,7 @@ dependencies = [ [[package]] name = "moderation-charters-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -2907,7 +2787,7 @@ dependencies = [ [[package]] name = "platform-encryption" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "aes", "cbc", @@ -2925,9 +2805,9 @@ dependencies = [ "base64 0.13.1", "dapi-grpc", "dash-sdk", - "dashcore 0.43.0", - "dashcore-rpc 0.43.0", - "dashcore_hashes 0.43.0", + "dashcore", + "dashcore-rpc", + "dashcore_hashes", "dashpay-contract", "data-contracts", "dotenvy", @@ -2940,7 +2820,7 @@ dependencies = [ "ferment-macro", "hex", "http 0.2.12", - "key-wallet 0.43.0", + "key-wallet", "lazy_static", "libc", "lru 0.12.5", @@ -2965,7 +2845,7 @@ dependencies = [ [[package]] name = "platform-serialization" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "grovedb-bincode", "platform-version", @@ -2973,7 +2853,7 @@ dependencies = [ [[package]] name = "platform-serialization-derive" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "proc-macro2", "quote", @@ -2983,7 +2863,7 @@ dependencies = [ [[package]] name = "platform-value" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "base64 0.22.1", "bs58", @@ -3004,7 +2884,7 @@ dependencies = [ [[package]] name = "platform-version" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "ferment-macro", "grovedb-bincode", @@ -3016,7 +2896,7 @@ dependencies = [ [[package]] name = "platform-versioning" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "proc-macro2", "quote", @@ -3288,7 +3168,7 @@ dependencies = [ [[package]] name = "rs-dapi-client" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "backon", "chrono", @@ -3659,7 +3539,7 @@ checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" [[package]] name = "simple-signer" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "async-trait", "base64 0.22.1", @@ -4031,7 +3911,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "token-history-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -4585,7 +4465,7 @@ dependencies = [ [[package]] name = "wallet-utils-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "platform-value", "platform-version", @@ -4864,7 +4744,7 @@ checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1" [[package]] name = "withdrawals-contract" -version = "5.0.0-beta.2" +version = "5.0.0-rc.7" dependencies = [ "num_enum 0.5.11", "platform-value", diff --git a/platform-mobile/Cargo.toml b/platform-mobile/Cargo.toml index 83586fcf..93bd4d17 100644 --- a/platform-mobile/Cargo.toml +++ b/platform-mobile/Cargo.toml @@ -46,11 +46,11 @@ dashcore = { git = "https://github.com/dashpay/rust-dashcore", features = [ "rand", "signer", "serde", -], default-features = false, rev = "981e97f1015960ae5d277afdabcba1cbbc0b3a63" } -key-wallet = { git = "https://github.com/dashpay/rust-dashcore", rev = "981e97f1015960ae5d277afdabcba1cbbc0b3a63" } -dashcore_hashes = { git = "https://github.com/dashpay/rust-dashcore", rev = "981e97f1015960ae5d277afdabcba1cbbc0b3a63" } +], default-features = false, rev = "d631aaca3632cc713143476e363c9a9aca038d2e" } +key-wallet = { git = "https://github.com/dashpay/rust-dashcore", rev = "d631aaca3632cc713143476e363c9a9aca038d2e" } +dashcore_hashes = { git = "https://github.com/dashpay/rust-dashcore", rev = "d631aaca3632cc713143476e363c9a9aca038d2e" } # dashcore-rpc is only needed for core rpc; TODO remove once we have correct core rpc impl -dashcore-rpc = { git = "https://github.com/dashpay/rust-dashcore", rev = "981e97f1015960ae5d277afdabcba1cbbc0b3a63" } +dashcore-rpc = { git = "https://github.com/dashpay/rust-dashcore", rev = "d631aaca3632cc713143476e363c9a9aca038d2e" } rand = "0.8.5" base64 = "0.13" tonic = { version = "0.11", features = [ diff --git a/platform-mobile/src/app_connect.rs b/platform-mobile/src/app_connect.rs index c212cc42..9242f0c3 100644 --- a/platform-mobile/src/app_connect.rs +++ b/platform-mobile/src/app_connect.rs @@ -12,6 +12,37 @@ use dpp::identity::identity_public_key::IdentityPublicKey; use platform_value::types::identifier::Identifier; use std::sync::Arc; +/// Reads Platform's proof-verified current contract-key index, including disabled entries. +/// Empty bytes mean the index has no key; errors are never converted into absence. +#[ferment_macro::export] +pub fn fetch_current_contract_key_id_with_sdk( + rust_sdk: *mut DashSdk, + identity_id: Identifier, + contract_id: Identifier, + purpose: u32, +) -> Result, String> { + use dash_sdk::platform::identities_contract_keys_query::IdentitiesContractKeysQuery; + use dpp::identity::identity_public_key::accessors::v0::IdentityPublicKeyGettersV0; + use dpp::identity::identities_contract_keys::IdentitiesContractKeys; + use dpp::identity::Purpose; + let purpose = match purpose { + 1 => Purpose::ENCRYPTION, + 2 => Purpose::DECRYPTION, + _ => return Err("Current contract-key lookup requires encryption or decryption".into()), + }; + let handle = unsafe { &*rust_sdk }; + handle.get_runtime().block_on(async { + let query = IdentitiesContractKeysQuery::new(vec![identity_id], contract_id, None, vec![purpose]) + .map_err(|e| e.to_string())?; + let found = IdentitiesContractKeys::fetch_with_settings( + &handle.get_sdk(), query, handle.get_request_settings(), + ).await.map_err(|e| e.to_string())?; + let key = found.and_then(|mut identities| identities.remove(&identity_id)) + .and_then(|mut keys| keys.remove(&purpose)).flatten(); + Ok(key.map(|key| key.id().to_string().into_bytes()).unwrap_or_default()) + }) +} + /// Fetches a group's owner through the SDK's proof-verifying query path. /// `None` means the group does not exist; transport/proof failures remain errors. #[ferment_macro::export] diff --git a/platform-revision.txt b/platform-revision.txt new file mode 100644 index 00000000..fe799420 --- /dev/null +++ b/platform-revision.txt @@ -0,0 +1 @@ +e179e2dd698a25b1c6caa45065ab3427c0172aff From 9030c706d30d55e7247a5bded75bee72a73e36aa Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Wed, 21 Oct 2026 20:44:28 -0700 Subject: [PATCH 08/21] fix: propagate data contract query and conversion failures --- .../dashj/platform/dapiclient/DapiClient.kt | 15 +++++----- .../dapiclient/DataContractResponseTest.kt | 29 +++++++++++++++++++ 2 files changed, 36 insertions(+), 8 deletions(-) create mode 100644 dpp/src/test/kotlin/org/dashj/platform/dapiclient/DataContractResponseTest.kt diff --git a/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt b/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt index 3ac97397..49a3b7b2 100644 --- a/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt +++ b/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt @@ -69,6 +69,10 @@ import retrofit2.converter.gson.GsonConverterFactory import java.math.BigInteger import java.util.concurrent.TimeUnit +internal fun decodeDataContractResult( + result: org.dashj.platform.sdk.base.Result, String> +): DataContract? = result.unwrap().map { DataContract.from(it) }.orElse(null) + class DapiClient @JvmOverloads constructor( var dapiAddressListProvider: DAPIAddressListProvider, val dpp: DashPlatformProtocol, @@ -561,8 +565,7 @@ class DapiClient @JvmOverloads constructor( * Fetch Data Contract by id * @param contractId String * @param prove Whether to return the proof - * @return GetDataContractResponse - * @throws NotFoundException if the contract is not found + * @return null only for a successfully proved absent contract; query and conversion errors propagate */ fun getDataContract( contractIdByteArray: ByteArray, @@ -580,11 +583,7 @@ class DapiClient @JvmOverloads constructor( contractId.toNative() ) try { - return try { - DataContract.from(dataContractResult.unwrap().get()) - } catch (e: Exception) { - null - } + return decodeDataContractResult(dataContractResult) } catch (e: Exception) { if (e.message?.contains("context provider error: invalid quorum: quorum not found") == true || e.message?.contains("invalid peer certificate: certificate expired") == true) { @@ -592,7 +591,7 @@ class DapiClient @JvmOverloads constructor( retriesLeft-- } else { logger.error("get data contract error", e) - throw NotFoundException("DataContract ${contractIdByteArray.toBase58()} not found") + throw e } logger.error("get data contract error", e) } diff --git a/dpp/src/test/kotlin/org/dashj/platform/dapiclient/DataContractResponseTest.kt b/dpp/src/test/kotlin/org/dashj/platform/dapiclient/DataContractResponseTest.kt new file mode 100644 index 00000000..41f1d957 --- /dev/null +++ b/dpp/src/test/kotlin/org/dashj/platform/dapiclient/DataContractResponseTest.kt @@ -0,0 +1,29 @@ +package org.dashj.platform.dapiclient + +import org.dashj.platform.sdk.DataContract +import org.dashj.platform.sdk.base.Result +import org.junit.jupiter.api.Assertions.* +import org.junit.jupiter.api.Test +import org.mockito.Mockito +import java.util.Optional + +class DataContractResponseTest { + @Test fun absentContractIsNull() { + assertNull(decodeDataContractResult(Result.Ok(Optional.empty()))) + } + + @Test fun proofAndTransportFailuresAreNotAbsence() { + val error = assertThrows(Exception::class.java) { + decodeDataContractResult(Result.Err("proof verification failed")) + } + assertTrue(error.message!!.contains("proof verification failed")) + } + + @Test fun conversionFailureIsNotAbsence() { + val contract = Mockito.mock(DataContract::class.java) + Mockito.`when`(contract.id).thenThrow(IllegalStateException("invalid contract")) + assertThrows(IllegalStateException::class.java) { + decodeDataContractResult(Result.Ok(Optional.of(contract))) + } + } +} From ee4e03f1532ef1c569c6db078407080912014ebc Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Sat, 24 Oct 2026 15:02:46 -0700 Subject: [PATCH 09/21] fix: require opt-in critical key migration and use DashJ 24 --- build.gradle | 3 ++- .../org/dashj/platform/dashpay/BlockchainIdentity.kt | 11 ++++++++--- .../dashj/platform/dashpay/AppConnectIdentityTest.kt | 10 ++++++++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 87cefb25..31e5b1dc 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ buildscript { ext.version = '5.0.0-SNAPSHOT' ext.kotlin_version = '2.1.20' - ext.dashj_version = '22.0.5' + ext.dashj_version = '24.0.0-SNAPSHOT' repositories { google() // Required for Android library and application projects mavenCentral() @@ -23,6 +23,7 @@ allprojects { google() // Required for Android library and application projects mavenCentral() maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots/' } + maven { url 'https://central.sonatype.com/repository/maven-snapshots/' } } group = 'org.dashj.platform' diff --git a/dpp/src/main/java/org/dashj/platform/dashpay/BlockchainIdentity.kt b/dpp/src/main/java/org/dashj/platform/dashpay/BlockchainIdentity.kt index 6842044f..6ec67c58 100644 --- a/dpp/src/main/java/org/dashj/platform/dashpay/BlockchainIdentity.kt +++ b/dpp/src/main/java/org/dashj/platform/dashpay/BlockchainIdentity.kt @@ -856,9 +856,11 @@ class BlockchainIdentity { SecurityLevel.HIGH, null, key.pubKey, false) } - private fun determineMissingKeys(): List { + private fun determineMissingKeys(includeCriticalAuthenticationKey: Boolean): List { checkState(identity != null) return defaultKeyList.filter { defaultKey -> + (includeCriticalAuthenticationKey || defaultKey.purpose != Purpose.AUTHENTICATION || + defaultKey.securityLevel != SecurityLevel.CRITICAL) && identity!!.publicKeys.find { it.type == defaultKey.type && it.purpose == defaultKey.purpose && it.securityLevel == defaultKey.securityLevel && it.contractBounds == null && @@ -868,12 +870,15 @@ class BlockchainIdentity { } } + /** CRITICAL authentication migration requires explicit consent; ordinary maintenance excludes it. */ + @JvmOverloads fun addMissingKeys( - signer: WalletSignerCallback + signer: WalletSignerCallback, + includeCriticalAuthenticationKey: Boolean = false ) { platform.identities.get(uniqueIdentifier)?.let { updatedIdentity -> identity = updatedIdentity - val missingKeys = determineMissingKeys() + val missingKeys = determineMissingKeys(includeCriticalAuthenticationKey) if (missingKeys.isEmpty()) return val firstId = updatedIdentity.publicKeys.maxOf { it.id } + 1 val addPublicKeys = missingKeys.mapIndexed { index, template -> diff --git a/dpp/src/test/kotlin/org/dashj/platform/dashpay/AppConnectIdentityTest.kt b/dpp/src/test/kotlin/org/dashj/platform/dashpay/AppConnectIdentityTest.kt index a2611784..58c3a44e 100644 --- a/dpp/src/test/kotlin/org/dashj/platform/dashpay/AppConnectIdentityTest.kt +++ b/dpp/src/test/kotlin/org/dashj/platform/dashpay/AppConnectIdentityTest.kt @@ -51,9 +51,15 @@ class AppConnectIdentityTest { assertTrue(identity.hasCriticalAuthenticationKey()) identity.identity!!.publicKeys.remove(critical) assertFalse(identity.hasCriticalAuthenticationKey()) - val method = BlockchainIdentity::class.java.getDeclaredMethod("determineMissingKeys").also { it.isAccessible = true } - @Suppress("UNCHECKED_CAST") val missing = method.invoke(identity) as List + val method = BlockchainIdentity::class.java.getDeclaredMethod("determineMissingKeys", Boolean::class.javaPrimitiveType) + .also { it.isAccessible = true } + @Suppress("UNCHECKED_CAST") val ordinary = method.invoke(identity, false) as List + assertTrue(ordinary.isEmpty()) + @Suppress("UNCHECKED_CAST") val missing = method.invoke(identity, true) as List assertEquals(listOf(SecurityLevel.CRITICAL), missing.map { it.securityLevel }) + identity.identity!!.publicKeys.removeAll { it.purpose == Purpose.TRANSFER || it.purpose == Purpose.ENCRYPTION } + @Suppress("UNCHECKED_CAST") val background = method.invoke(identity, false) as List + assertEquals(setOf(Purpose.TRANSFER, Purpose.ENCRYPTION), background.map { it.purpose }.toSet()) } @Test fun fenceUsesMissingIdButNeverAppMaterialOrAnExistingWalletKey() { From 76d0a48c21aacde2a7846b0b286bfd4a871ee000 Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Sat, 24 Oct 2026 18:44:38 -0700 Subject: [PATCH 10/21] fix: guard identity updates and wallet signing with caller authorization --- .../platform/dashpay/BlockchainIdentity.kt | 1 + .../dashpay/callback/WalletSignerCallback.kt | 11 +++++- .../dashpay/AppConnectIdentityTest.kt | 39 +++++++++++++++++++ 3 files changed, 49 insertions(+), 2 deletions(-) diff --git a/dpp/src/main/java/org/dashj/platform/dashpay/BlockchainIdentity.kt b/dpp/src/main/java/org/dashj/platform/dashpay/BlockchainIdentity.kt index 6ec67c58..80e1ed0a 100644 --- a/dpp/src/main/java/org/dashj/platform/dashpay/BlockchainIdentity.kt +++ b/dpp/src/main/java/org/dashj/platform/dashpay/BlockchainIdentity.kt @@ -894,6 +894,7 @@ class BlockchainIdentity { ?: error("can't find a public key with MASTER security level") updatedIdentity.revision++ + signer.requireAuthorized() val identityResult = dashsdk.platformMobilePutPutIdentityUpdateSdk( platform.rustSdk, updatedIdentity.toNative(), diff --git a/dpp/src/main/java/org/dashj/platform/dashpay/callback/WalletSignerCallback.kt b/dpp/src/main/java/org/dashj/platform/dashpay/callback/WalletSignerCallback.kt index 52020617..ae7f29c8 100644 --- a/dpp/src/main/java/org/dashj/platform/dashpay/callback/WalletSignerCallback.kt +++ b/dpp/src/main/java/org/dashj/platform/dashpay/callback/WalletSignerCallback.kt @@ -7,11 +7,18 @@ import org.bitcoinj.wallet.authentication.AuthenticationGroupExtension import org.bouncycastle.crypto.params.KeyParameter import org.dashj.platform.sdk.callbacks.Signer -class WalletSignerCallback(wallet: Wallet, val keyParameter: KeyParameter?) : Signer() { +class WalletSignerCallback @JvmOverloads constructor( + wallet: Wallet, + val keyParameter: KeyParameter?, + private val checkAuthorization: () -> Unit = {} +) : Signer() { private val authenticationGroup = wallet.getKeyChainExtension(AuthenticationGroupExtension.EXTENSION_ID) as AuthenticationGroupExtension + fun requireAuthorized() = checkAuthorization() + override fun sign(publicKey: ByteArray, data: ByteArray): ByteArray { + requireAuthorized() val key = authenticationGroup.identityKeyChain?.findKeyFromPubKey(publicKey) if (key != null) { return key.signHash(Sha256Hash.twiceOf(data), keyParameter) @@ -19,4 +26,4 @@ class WalletSignerCallback(wallet: Wallet, val keyParameter: KeyParameter?) : Si error("cannot find public key ${Utils.HEX.encode(publicKey)}") } } -} \ No newline at end of file +} diff --git a/dpp/src/test/kotlin/org/dashj/platform/dashpay/AppConnectIdentityTest.kt b/dpp/src/test/kotlin/org/dashj/platform/dashpay/AppConnectIdentityTest.kt index 58c3a44e..0b75b9d4 100644 --- a/dpp/src/test/kotlin/org/dashj/platform/dashpay/AppConnectIdentityTest.kt +++ b/dpp/src/test/kotlin/org/dashj/platform/dashpay/AppConnectIdentityTest.kt @@ -6,6 +6,7 @@ import org.bitcoinj.wallet.authentication.AuthenticationGroupExtension import org.dashj.platform.dpp.identifier.Identifier import org.dashj.platform.dpp.identity.Identity import org.dashj.platform.dpp.identity.IdentityPublicKey +import org.dashj.platform.dpp.identity.SingleContractBounds import org.dashj.platform.sdk.Purpose import org.dashj.platform.sdk.SecurityLevel import org.dashj.platform.sdk.KeyType @@ -80,4 +81,42 @@ class AppConnectIdentityTest { } assertThrows(IllegalArgumentException::class.java) { identity.createRevocationFenceKey(0, null) } } + + @Test fun unusableCriticalKeysNeverSuppressExplicitProvisioning() { + val keys = newKeys() + val critical = keys.single { it.purpose == Purpose.AUTHENTICATION && it.securityLevel == SecurityLevel.CRITICAL } + val method = BlockchainIdentity::class.java.getDeclaredMethod("determineMissingKeys", Boolean::class.javaPrimitiveType) + .also { it.isAccessible = true } + val variants = listOf( + IdentityPublicKey(critical.id, critical.type, critical.purpose, critical.securityLevel, + SingleContractBounds(Identifier.from(ByteArray(32) { 2 })), critical.data, false), + IdentityPublicKey(critical.id, critical.type, critical.purpose, critical.securityLevel, + null, critical.data, false, disabledAt = 1), + IdentityPublicKey(critical.id, critical.type, critical.purpose, critical.securityLevel, + null, critical.data, false, expiresAt = 1), + IdentityPublicKey(critical.id, critical.type, critical.purpose, critical.securityLevel, + null, critical.data, false, expiresAt = Long.MAX_VALUE), + IdentityPublicKey(critical.id, critical.type, critical.purpose, critical.securityLevel, + null, org.bitcoinj.core.ECKey().pubKey, false) + ) + variants.forEach { unusable -> + identity.identity = Identity(Identifier.from(ByteArray(32) { 1 }), keys.filter { it !== critical } + unusable, 1000000, 0, 14) + assertFalse(identity.hasCriticalAuthenticationKey()) + @Suppress("UNCHECKED_CAST") val missing = method.invoke(identity, true) as List + assertEquals(listOf(SecurityLevel.CRITICAL), missing.map { it.securityLevel }) + @Suppress("UNCHECKED_CAST") val background = method.invoke(identity, false) as List + assertTrue(background.isEmpty()) + } + } + + @Test fun capturedWalletSignerRechecksAuthorizationForEverySignature() { + val critical = newKeys().single { it.purpose == Purpose.AUTHENTICATION && it.securityLevel == SecurityLevel.CRITICAL } + var unlocked = true + WalletSignerCallback(wallet, null) { check(unlocked) { "Wallet locked" } }.use { signer -> + assertTrue(signer.sign(critical.data, byteArrayOf(1, 2, 3)).isNotEmpty()) + unlocked = false + assertThrows(IllegalStateException::class.java) { signer.requireAuthorized() } + assertThrows(IllegalStateException::class.java) { signer.sign(critical.data, byteArrayOf(1, 2, 3)) } + } + } } From 9fdfe17b868a6304815118160d97555adad5e19e Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Sun, 25 Oct 2026 21:45:24 -0700 Subject: [PATCH 11/21] Expose complete proof-verified contract group scope for Android Replace the owner-only bridge limitation that forced the wallet to block Yappr's group-bound CRITICAL grants. Verify all member pages at one block, expose admins and each member kind, and retain explicit errors instead of partial scope. Order Android native builds after SWIG generation to prevent stale JNI wrappers. Document the rationale and verified test coverage. --- dash-sdk-android/build.gradle | 7 + .../src/main/rust/src/fermented.rs | 2 +- dash-sdk-bindings/src/fermented.rs | 2 +- dash-sdk-java/src/main/swig/app_connect.i | 2 + docs/contract-group-scope.md | 52 ++++++ .../dashj/platform/dapiclient/DapiClient.kt | 11 ++ .../dpp/contract/VerifiedContractGroup.kt | 43 +++++ .../dpp/contract/VerifiedContractGroupTest.kt | 40 +++++ platform-mobile/src/app_connect.rs | 164 +++++++++++++++++- 9 files changed, 320 insertions(+), 3 deletions(-) create mode 100644 docs/contract-group-scope.md create mode 100644 dpp/src/main/java/org/dashj/platform/dpp/contract/VerifiedContractGroup.kt create mode 100644 dpp/src/test/kotlin/org/dashj/platform/dpp/contract/VerifiedContractGroupTest.kt diff --git a/dash-sdk-android/build.gradle b/dash-sdk-android/build.gradle index 461ddf70..556cd837 100644 --- a/dash-sdk-android/build.gradle +++ b/dash-sdk-android/build.gradle @@ -110,6 +110,13 @@ dependencies { androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' } +// Android compiles the C++ wrapper generated by the Java SDK's SWIG task. +tasks.configureEach { + if (name.startsWith('configureCMake') || name.startsWith('buildCMake')) { + dependsOn ':dash-sdk-java:generateSWIG' + } +} + task sourcesJar(type: Jar) { from android.sourceSets.main.java.srcDirs archiveClassifier.set("sources") diff --git a/dash-sdk-android/src/main/rust/src/fermented.rs b/dash-sdk-android/src/main/rust/src/fermented.rs index 9a2e860f..a5f00b86 100644 --- a/dash-sdk-android/src/main/rust/src/fermented.rs +++ b/dash-sdk-android/src/main/rust/src/fermented.rs @@ -1 +1 @@ -# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod platform_value { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod eq { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_32 { use crate as dash_sdk_bindings ; } } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod macros { use crate as dash_sdk_bindings ; } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod index { use crate as dash_sdk_bindings ; } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod transport { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod sync { use crate as dash_sdk_bindings ; } pub mod core { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod dash_core_client { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod platform { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod transition { use crate as dash_sdk_bindings ; } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod readers { use crate as dash_sdk_bindings ; } pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod burn { use crate as dash_sdk_bindings ; } } pub mod builders { use crate as dash_sdk_bindings ; } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } pub mod contested_queries { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } pub mod epoch { use crate as dash_sdk_bindings ; } } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } pub mod contest_fund { use crate as dash_sdk_bindings ; } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod identities_contract_keys_query { use crate as dash_sdk_bindings ; } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod address_sync { use crate as dash_sdk_bindings ; } } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_current_contract_key_id_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_current_contract_key_id_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id) , purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod unproved { use crate as dash_sdk_bindings ; } pub mod verify { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod from_request { use crate as dash_sdk_bindings ; } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod compile { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod withdrawal { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } pub mod accessors { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod config { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod moderation { use crate as dash_sdk_bindings ; pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } pub mod reason { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod encode { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; } pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration { use crate as dash_sdk_bindings ; # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod document_type { use crate as dash_sdk_bindings ; pub mod property { use crate as dash_sdk_bindings ; pub mod array { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod string_transformations { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod reference_where { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod time_range { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod outlives_delete { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod schema { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod expand_property_type_shorthands { use crate as dash_sdk_bindings ; } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fee { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_array_elements_for_document_type { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } } pub mod util { use crate as dash_sdk_bindings ; pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod vec { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod convert { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod bls { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod group_action { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transitions")] pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod info { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod status { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod consensus { use crate as dash_sdk_bindings ; pub mod fee { use crate as dash_sdk_bindings ; } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod state { use crate as dash_sdk_bindings ; pub mod state_error { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } } pub mod basic { use crate as dash_sdk_bindings ; pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } } } pub mod non_consensus_error { use crate as dash_sdk_bindings ; } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer_map { use crate as dash_sdk_bindings ; } pub mod safe_integer { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } } pub mod traits { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith , Contains , ContainsAny } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith , drive_query_conditions_WhereOperator :: Contains => drive :: query :: conditions :: WhereOperator :: Contains , drive_query_conditions_WhereOperator :: ContainsAny => drive :: query :: conditions :: WhereOperator :: ContainsAny } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , drive :: query :: conditions :: WhereOperator :: Contains => drive_query_conditions_WhereOperator :: Contains , drive :: query :: conditions :: WhereOperator :: ContainsAny => drive_query_conditions_WhereOperator :: ContainsAny , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , drive_query_conditions_WhereOperator :: Contains => { } , drive_query_conditions_WhereOperator :: ContainsAny => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Contains_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Contains { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_ContainsAny_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: ContainsAny { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod batch { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod rekey_unsigned_integer_index_values { use crate as dash_sdk_bindings ; } pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod queue { use crate as dash_sdk_bindings ; pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_group_action { use crate as dash_sdk_bindings ; } pub mod add_new_groups { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } } pub mod info { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group { use crate as dash_sdk_bindings ; } pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod backfill_historical_credit_pool_nullifiers { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod token { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file +# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod dpp { use crate as dash_sdk_bindings ; pub mod fee { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod util { use crate as dash_sdk_bindings ; pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod vec { use crate as dash_sdk_bindings ; } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod convert { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod json_schema { use crate as dash_sdk_bindings ; } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } } pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod state { use crate as dash_sdk_bindings ; pub mod voting { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } } pub mod basic { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } } } pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod compile { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transitions")] pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod traits { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } } } pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_array_elements_for_document_type { use crate as dash_sdk_bindings ; } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } pub mod config { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; pub mod reason { use crate as dash_sdk_bindings ; } pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; pub mod conversion { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod index { use crate as dash_sdk_bindings ; pub mod outlives_delete { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod expand_property_type_shorthands { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod string_transformations { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod reference_where { use crate as dash_sdk_bindings ; } pub mod array { use crate as dash_sdk_bindings ; } } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod encode { use crate as dash_sdk_bindings ; } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; } pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity_public_key { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod witness { use crate as dash_sdk_bindings ; } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer { use crate as dash_sdk_bindings ; } pub mod safe_integer_map { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } pub mod serde_bytes { use crate as dash_sdk_bindings ; } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } pub mod accessors { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod verify { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod unproved { use crate as dash_sdk_bindings ; } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } } pub mod macros { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod bytes_36 { use crate as dash_sdk_bindings ; } } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod platform { use crate as dash_sdk_bindings ; pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } pub mod contested_queries { use crate as dash_sdk_bindings ; } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod identities_contract_keys_query { use crate as dash_sdk_bindings ; } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod readers { use crate as dash_sdk_bindings ; } pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } pub mod epoch { use crate as dash_sdk_bindings ; } } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod burn { use crate as dash_sdk_bindings ; } } pub mod builders { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } pub mod documents { use crate as dash_sdk_bindings ; pub mod contest_fund { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } } pub mod sync { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod core { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod dash_core_client { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod calculate_fee { use crate as dash_sdk_bindings ; } pub mod op { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } } pub mod token { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith , Contains , ContainsAny } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith , drive_query_conditions_WhereOperator :: Contains => drive :: query :: conditions :: WhereOperator :: Contains , drive_query_conditions_WhereOperator :: ContainsAny => drive :: query :: conditions :: WhereOperator :: ContainsAny } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , drive :: query :: conditions :: WhereOperator :: Contains => drive_query_conditions_WhereOperator :: Contains , drive :: query :: conditions :: WhereOperator :: ContainsAny => drive_query_conditions_WhereOperator :: ContainsAny , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , drive_query_conditions_WhereOperator :: Contains => { } , drive_query_conditions_WhereOperator :: ContainsAny => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Contains_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Contains { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_ContainsAny_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: ContainsAny { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group { use crate as dash_sdk_bindings ; } pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod backfill_historical_credit_pool_nullifiers { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } pub mod queue { use crate as dash_sdk_bindings ; pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod operations { use crate as dash_sdk_bindings ; pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } } pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_groups { use crate as dash_sdk_bindings ; } pub mod for_add_group_action { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod vote_storage_form { use crate as dash_sdk_bindings ; } pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod genesis_core_height { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } pub mod rekey_unsigned_integer_index_values { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_current_contract_key_id_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_current_contract_key_id_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id) , purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_snapshot_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_snapshot_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_snapshot_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file diff --git a/dash-sdk-bindings/src/fermented.rs b/dash-sdk-bindings/src/fermented.rs index a7e0b917..77c86abb 100644 --- a/dash-sdk-bindings/src/fermented.rs +++ b/dash-sdk-bindings/src/fermented.rs @@ -1 +1 @@ -# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod backfill_historical_credit_pool_nullifiers { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group { use crate as dash_sdk_bindings ; } pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod queue { use crate as dash_sdk_bindings ; pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract { use crate as dash_sdk_bindings ; } pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } pub mod rekey_unsigned_integer_index_values { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod vote_storage_form { use crate as dash_sdk_bindings ; } pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_elements { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod calculate_fee { use crate as dash_sdk_bindings ; } pub mod op { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith , Contains , ContainsAny } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith , drive_query_conditions_WhereOperator :: Contains => drive :: query :: conditions :: WhereOperator :: Contains , drive_query_conditions_WhereOperator :: ContainsAny => drive :: query :: conditions :: WhereOperator :: ContainsAny } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , drive :: query :: conditions :: WhereOperator :: Contains => drive_query_conditions_WhereOperator :: Contains , drive :: query :: conditions :: WhereOperator :: ContainsAny => drive_query_conditions_WhereOperator :: ContainsAny , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , drive_query_conditions_WhereOperator :: Contains => { } , drive_query_conditions_WhereOperator :: ContainsAny => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Contains_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Contains { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_ContainsAny_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: ContainsAny { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod system_contracts { use crate as dash_sdk_bindings ; } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_current_contract_key_id_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_current_contract_key_id_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id) , purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod macros { use crate as dash_sdk_bindings ; } pub mod eq { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod types { use crate as dash_sdk_bindings ; pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transitions")] pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod errors { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } } } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod state_transition_types { use crate as dash_sdk_bindings ; } } pub mod bls { use crate as dash_sdk_bindings ; } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod new { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod basic { use crate as dash_sdk_bindings ; pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod state { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod conversion { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod config { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; pub mod elected { use crate as dash_sdk_bindings ; } pub mod reason { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } pub mod document_removal { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; } pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod index { use crate as dash_sdk_bindings ; pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod outlives_delete { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod reference_where { use crate as dash_sdk_bindings ; } pub mod array { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod string_transformations { use crate as dash_sdk_bindings ; } } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod expand_property_type_shorthands { use crate as dash_sdk_bindings ; } } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer_map { use crate as dash_sdk_bindings ; } pub mod safe_integer { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } } pub mod withdrawal { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod metadata { use crate as dash_sdk_bindings ; } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } } pub mod identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod action_event { use crate as dash_sdk_bindings ; } pub mod group_action { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } pub mod deserialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_array_elements_for_document_type { use crate as dash_sdk_bindings ; } } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fee { use crate as dash_sdk_bindings ; pub mod default_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod util { use crate as dash_sdk_bindings ; pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod canonical { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod convert { use crate as dash_sdk_bindings ; } } pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod vec { use crate as dash_sdk_bindings ; } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod address_list { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod connection_pool { use crate as dash_sdk_bindings ; } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod platform { use crate as dash_sdk_bindings ; pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod readers { use crate as dash_sdk_bindings ; } pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request_queries { use crate as dash_sdk_bindings ; } pub mod contact_request { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod documents { use crate as dash_sdk_bindings ; pub mod contest_fund { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod burn { use crate as dash_sdk_bindings ; } } pub mod builders { use crate as dash_sdk_bindings ; } } pub mod identities_contract_keys_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } pub mod contested_queries { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } } pub mod sync { use crate as dash_sdk_bindings ; } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod core { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod dash_core_client { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } } pub mod verify { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod unproved { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file +# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod platform_value { use crate as dash_sdk_bindings ; pub mod macros { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod types { use crate as dash_sdk_bindings ; pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod eq { use crate as dash_sdk_bindings ; } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_snapshot_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_snapshot_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_snapshot_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_current_contract_key_id_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_current_contract_key_id_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id) , purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_elements { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod token { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod genesis_core_height { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } pub mod rekey_unsigned_integer_index_values { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract { use crate as dash_sdk_bindings ; } pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod burn_from_pool { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod queue { use crate as dash_sdk_bindings ; pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod backfill_historical_credit_pool_nullifiers { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_group_action { use crate as dash_sdk_bindings ; } pub mod add_new_groups { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith , Contains , ContainsAny } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith , drive_query_conditions_WhereOperator :: Contains => drive :: query :: conditions :: WhereOperator :: Contains , drive_query_conditions_WhereOperator :: ContainsAny => drive :: query :: conditions :: WhereOperator :: ContainsAny } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , drive :: query :: conditions :: WhereOperator :: Contains => drive_query_conditions_WhereOperator :: Contains , drive :: query :: conditions :: WhereOperator :: ContainsAny => drive_query_conditions_WhereOperator :: ContainsAny , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , drive_query_conditions_WhereOperator :: Contains => { } , drive_query_conditions_WhereOperator :: ContainsAny => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Contains_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Contains { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_ContainsAny_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: ContainsAny { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } } } pub mod util { use crate as dash_sdk_bindings ; pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod convert { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } } pub mod vec { use crate as dash_sdk_bindings ; } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod json_schema { use crate as dash_sdk_bindings ; } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod get_raw_array_elements_for_document_type { use crate as dash_sdk_bindings ; } } } pub mod fee { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod metadata { use crate as dash_sdk_bindings ; } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod memo { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer_map { use crate as dash_sdk_bindings ; } pub mod safe_integer { use crate as dash_sdk_bindings ; } } } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod config { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } pub mod reason { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; } pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod distribution_function { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod encode { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod outlives_delete { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod array { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod string_transformations { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod reference_where { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } } pub mod schema { use crate as dash_sdk_bindings ; pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod expand_property_type_shorthands { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } } } pub mod block { use crate as dash_sdk_bindings ; pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod extended_block_info { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod compile { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod status { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } } } pub mod bls { use crate as dash_sdk_bindings ; } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod contract_group { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod consensus { use crate as dash_sdk_bindings ; pub mod fee { use crate as dash_sdk_bindings ; } pub mod state { use crate as dash_sdk_bindings ; pub mod group { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } } pub mod basic { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } } pub mod non_consensus_error { use crate as dash_sdk_bindings ; } } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod sync { use crate as dash_sdk_bindings ; } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod core { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod dash_core_client { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod platform { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod burn { use crate as dash_sdk_bindings ; } } pub mod builders { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod documents { use crate as dash_sdk_bindings ; pub mod contest_fund { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod identities_contract_keys_query { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod contested_queries { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod readers { use crate as dash_sdk_bindings ; } pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } } pub mod verify { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; } pub mod unproved { use crate as dash_sdk_bindings ; } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file diff --git a/dash-sdk-java/src/main/swig/app_connect.i b/dash-sdk-java/src/main/swig/app_connect.i index 73e2326d..92ec1e8c 100644 --- a/dash-sdk-java/src/main/swig/app_connect.i +++ b/dash-sdk-java/src/main/swig/app_connect.i @@ -1,4 +1,6 @@ %rename(fetchContractGroupOwnerWithSdk) platform_mobile_app_connect_fetch_contract_group_owner_with_sdk; +%rename(fetchContractGroupSnapshotWithSdk) platform_mobile_app_connect_fetch_contract_group_snapshot_with_sdk; +%newobject platform_mobile_app_connect_fetch_contract_group_snapshot_with_sdk; %rename(fetchPlatformTimeWithSdk) platform_mobile_app_connect_fetch_platform_time_with_sdk; %rename(fetchCurrentContractKeyIdWithSdk) platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk; %newobject platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk; diff --git a/docs/contract-group-scope.md b/docs/contract-group-scope.md new file mode 100644 index 00000000..3546464e --- /dev/null +++ b/docs/contract-group-scope.md @@ -0,0 +1,52 @@ +# Verified Contract Group Scope + +## Why This Changed + +The Android bridge previously returned only a contract group's owner. Owner +equality alone does not describe the authority granted by a group-bound key: +groups can contain whole contracts, document types and token positions, and +authorized administrators can add future members. + +The wallet consequently rejected all group grants as a temporary safety measure. +That restriction broke Yappr's legitimate v2 login flow, whose primary CRITICAL +authentication key is group-bound. Single-contract substitution is not an +equivalent fix: the supported CRITICAL grant profile requires group bounds. + +Platform already supplies proof-verifying group information and member queries. +The missing piece was the Android bridge, not a new consensus rule. This change +exposes the full verified scope so the wallet can restore group approvals with +accurate consent instead of removing verification or requiring a different QR. + +## Guarantees + +- `fetch_contract_group_snapshot_with_sdk` uses the SDK's proof-verifying `Fetch` + path for owner/admin information and all three member kinds. +- Every member page must match the information query's block height, chain ID + and block ID. A block mismatch retries the complete snapshot up to three times; + no mixed-block or partial result is returned. +- Pages contain at most 100 entries. Full pages require continuation, including + the final empty page when necessary. More than 1,000 aggregate members produces + an explicit review-size error rather than truncating the scope. +- Proved absence is JSON null. Transport, proof, missing-page and cursor errors + remain errors. The Kotlin decoder rejects incomplete or duplicate scope data. +- Kotlin member/admin sets ignore transport order. Block identity is internal + to snapshot construction, so a newer block alone does not change consent. +- The existing owner-only API remains available for revocation audits; revoking + recorded keys does not depend on fetching a complete membership snapshot. + +The Android CMake tasks now depend on SWIG generation. Verification caught an +ARM64 library built before the new Java/JNI name was generated. Explicit ordering +prevents packaging an old C++ wrapper with a new Java SDK. Both packaged ABIs were +checked for the new JNI symbol, and the wallet APK libraries matched those bytes. + +## Verification + +Three offline Rust tests cover block consistency, pagination/caps and all member +kinds. Three Kotlin model tests cover decoding, semantic equality and malformed +scope. The targeted SDK regression set passed 17 tests in total. + +On 2026-10-25 the Pixel 9 API 36 AOSP emulator completed the Yappr testnet login +with wallet 11.9.2-connect. Its log records a successful identity-update response +at 21:38:07 followed by system-contract response submission and lookup. This is +evidence for that tested happy path, not exhaustive live coverage of every group +size, configuration-change race or interrupted approval. diff --git a/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt b/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt index 49a3b7b2..a8d3f12c 100644 --- a/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt +++ b/dpp/src/main/java/org/dashj/platform/dapiclient/DapiClient.kt @@ -1158,6 +1158,17 @@ class DapiClient @JvmOverloads constructor( .unwrap().map { Identifier.from(it) }.orElse(null) } + /** Complete proof-verified membership and administration at one Platform block. */ + fun getContractGroup(groupId: Identifier): org.dashj.platform.dpp.contract.VerifiedContractGroup? { + val result = dashsdk.fetchContractGroupSnapshotWithSdk(rustSdk, groupId.toNative()) + try { + check(result.error == null) { result.error.orEmpty() } + return org.dashj.platform.dpp.contract.VerifiedContractGroup.decode(checkNotNull(result.ok)).also { + check(it == null || it.id == groupId) { "Contract group response does not match the requested ID" } + } + } finally { result.delete() } + } + /** Fresh Platform block time in milliseconds, from a proof-verified identity query. */ fun getPlatformTime(identityId: Identifier): Long { return dashsdk.fetchPlatformTimeWithSdk(rustSdk, identityId.toNative()).unwrap() diff --git a/dpp/src/main/java/org/dashj/platform/dpp/contract/VerifiedContractGroup.kt b/dpp/src/main/java/org/dashj/platform/dpp/contract/VerifiedContractGroup.kt new file mode 100644 index 00000000..1f2c030b --- /dev/null +++ b/dpp/src/main/java/org/dashj/platform/dpp/contract/VerifiedContractGroup.kt @@ -0,0 +1,43 @@ +package org.dashj.platform.dpp.contract + +import com.google.gson.JsonParser +import org.dashj.platform.dpp.identifier.Identifier + +data class ContractGroupDocumentMember(val contractId: Identifier, val documentType: String) +data class ContractGroupTokenMember(val contractId: Identifier, val tokenPosition: Int) + +/** A complete proof-verified group scope. Sets deliberately ignore transport ordering. */ +data class VerifiedContractGroup( + val id: Identifier, + val ownerId: Identifier, + val adminIds: Set, + val name: String?, + val description: String?, + val contracts: Set, + val documentTypes: Set, + val tokens: Set +) { + companion object { + internal fun decode(bytes: ByteArray): VerifiedContractGroup? { + val value = JsonParser().parse(String(bytes, Charsets.UTF_8)) + if (value.isJsonNull) return null + val json = value.asJsonObject + fun id(field: String) = Identifier.from(json.get(field).asString) + fun text(field: String) = json.get(field).let { if (it.isJsonNull) null else it.asString } + val admins = json.getAsJsonArray("adminIds").map { Identifier.from(it.asString) } + val contracts = json.getAsJsonArray("contracts").map { Identifier.from(it.asString) } + val documents = json.getAsJsonArray("documentTypes").map { entry -> entry.asJsonObject.let { + ContractGroupDocumentMember(Identifier.from(it.get("contractId").asString), it.get("documentType").asString) + } } + val tokens = json.getAsJsonArray("tokens").map { entry -> entry.asJsonObject.let { + val position = it.get("tokenPosition").asInt + require(position in 0..65535) { "Invalid token position" } + ContractGroupTokenMember(Identifier.from(it.get("contractId").asString), position) + } } + require(admins.size == admins.toSet().size && contracts.size == contracts.toSet().size && + documents.size == documents.toSet().size && tokens.size == tokens.toSet().size) { "Duplicate group scope entries" } + return VerifiedContractGroup(id("id"), id("ownerId"), admins.toSet(), text("name"), text("description"), + contracts.toSet(), documents.toSet(), tokens.toSet()) + } + } +} diff --git a/dpp/src/test/kotlin/org/dashj/platform/dpp/contract/VerifiedContractGroupTest.kt b/dpp/src/test/kotlin/org/dashj/platform/dpp/contract/VerifiedContractGroupTest.kt new file mode 100644 index 00000000..5cd677ad --- /dev/null +++ b/dpp/src/test/kotlin/org/dashj/platform/dpp/contract/VerifiedContractGroupTest.kt @@ -0,0 +1,40 @@ +package org.dashj.platform.dpp.contract + +import org.dashj.platform.dpp.identifier.Identifier +import org.junit.jupiter.api.Assertions.* +import org.junit.jupiter.api.Test + +class VerifiedContractGroupTest { + private val id = Identifier.from(ByteArray(32) { 1 }).toString() + private val admin = Identifier.from(ByteArray(32) { 2 }).toString() + private fun json(admins: String = "\"$admin\"", tokens: String = "{\"contractId\":\"$id\",\"tokenPosition\":3}") = """ + {"id":"$id","ownerId":"$id","adminIds":[$admins],"name":null,"description":null, + "contracts":["$id"],"documentTypes":[{"contractId":"$id","documentType":"profile"}],"tokens":[$tokens]} + """.trimIndent().toByteArray() + + @Test fun `all member types and admins survive decoding`() { + val group = VerifiedContractGroup.decode(json())!! + assertEquals(setOf(Identifier.from(admin)), group.adminIds) + assertEquals(setOf(Identifier.from(id)), group.contracts) + assertEquals(setOf(ContractGroupDocumentMember(Identifier.from(id), "profile")), group.documentTypes) + assertEquals(setOf(ContractGroupTokenMember(Identifier.from(id), 3)), group.tokens) + assertNull(VerifiedContractGroup.decode("null".toByteArray())) + } + + @Test fun `semantic equality ignores order but not changed scope`() { + val a = VerifiedContractGroup.decode(json("\"$id\",\"$admin\""))!! + val b = VerifiedContractGroup.decode(json("\"$admin\",\"$id\""))!! + assertEquals(a, b) + assertNotEquals(a, a.copy(adminIds = emptySet())) + assertNotEquals(a, a.copy(tokens = emptySet())) + assertNotEquals(a, a.copy(documentTypes = emptySet())) + assertNotEquals(a, a.copy(contracts = emptySet())) + } + + @Test fun `incomplete duplicate and malformed scope fails closed`() { + for (bytes in listOf("{}".toByteArray(), json("\"$admin\",\"$admin\""), + json(tokens = "{\"contractId\":\"$id\",\"tokenPosition\":65536}"))) { + assertThrows(Exception::class.java) { VerifiedContractGroup.decode(bytes) } + } + } +} diff --git a/platform-mobile/src/app_connect.rs b/platform-mobile/src/app_connect.rs index 9242f0c3..88dc060e 100644 --- a/platform-mobile/src/app_connect.rs +++ b/platform-mobile/src/app_connect.rs @@ -1,7 +1,10 @@ use crate::config::EntryPoint; use crate::put::CallbackSigner; use crate::sdk::DashSdk; -use dash_sdk::platform::contract_groups::ContractGroupInfo; +use dash_sdk::platform::contract_groups::{ + ContractGroupInfo, ContractGroupMembersPage, ContractGroupMembersPageQuery, +}; +use dapi_grpc::platform::v0::{Proof, ResponseMetadata}; use dash_sdk::platform::documents::transitions::delete::DocumentDeleteTransitionBuilder; use dash_sdk::platform::transition::put_settings::PutSettings; use dash_sdk::platform::Fetch; @@ -10,6 +13,7 @@ use dpp::document::Document; use dpp::identity::Identity; use dpp::identity::identity_public_key::IdentityPublicKey; use platform_value::types::identifier::Identifier; +use platform_value::string_encoding::Encoding; use std::sync::Arc; /// Reads Platform's proof-verified current contract-key index, including disabled entries. @@ -63,6 +67,164 @@ pub fn fetch_contract_group_owner_with_sdk( }) } +const GROUP_SNAPSHOT_CHANGED: &str = "Contract group changed while reading its verified scope. Retry to refresh."; +const GROUP_PAGE_SIZE: u16 = 100; +const MAX_REVIEW_GROUP_MEMBERS: usize = 1000; + +#[derive(PartialEq, Eq)] +struct GroupSnapshotBlock { + height: u64, + chain_id: String, + block_id: Vec, +} + +impl GroupSnapshotBlock { + fn from_proof(metadata: &ResponseMetadata, proof: &Proof) -> Result { + if metadata.height == 0 || proof.block_id_hash.len() != 32 { + return Err("Missing verified contract group block identity".into()); + } + Ok(Self { height: metadata.height, chain_id: metadata.chain_id.clone(), block_id: proof.block_id_hash.clone() }) + } + + fn require_same(&self, metadata: &ResponseMetadata, proof: &Proof) -> Result<(), String> { + if *self != Self::from_proof(metadata, proof)? { + return Err(GROUP_SNAPSHOT_CHANGED.into()); + } + Ok(()) + } +} + +fn group_page_values(page: &ContractGroupMembersPage) -> Vec { + match page { + ContractGroupMembersPage::Contracts(ids) => ids.iter().map(|id| serde_json::json!(id.to_string(Encoding::Base58))).collect(), + ContractGroupMembersPage::DocumentTypes(entries) => entries.iter().map(|(id, name)| serde_json::json!({ + "contractId": id.to_string(Encoding::Base58), "documentType": name, + })).collect(), + ContractGroupMembersPage::Tokens(entries) => entries.iter().map(|(id, position)| serde_json::json!({ + "contractId": id.to_string(Encoding::Base58), "tokenPosition": position, + })).collect(), + } +} + +fn append_group_page( + query: &ContractGroupMembersPageQuery, + page: &ContractGroupMembersPage, + values: &mut Vec, +) -> Result, String> { + if page.len() > GROUP_PAGE_SIZE as usize || values.len() + page.len() > MAX_REVIEW_GROUP_MEMBERS { + return Err("Contract group is too large to review completely in this wallet".into()); + } + values.extend(group_page_values(page)); + if page.len() < GROUP_PAGE_SIZE as usize { + return Ok(None); + } + let next = query.after(page).ok_or("Missing contract group page cursor")?; + if next == *query { + return Err("Contract group page cursor did not advance".into()); + } + Ok(Some(next)) +} + +async fn fetch_group_members( + handle: &DashSdk, + mut query: ContractGroupMembersPageQuery, + block: &GroupSnapshotBlock, +) -> Result, String> { + let mut values = Vec::new(); + loop { + let (page, metadata, proof) = ContractGroupMembersPage::fetch_with_metadata_and_proof( + &handle.get_sdk(), query.clone(), Some(handle.get_request_settings()), + ).await.map_err(|e| e.to_string())?; + block.require_same(&metadata, &proof)?; + let page = page.ok_or("Missing proved contract group members page")?; + match append_group_page(&query, &page, &mut values)? { + Some(next) => query = next, + None => return Ok(values), + } + } +} + +async fn fetch_group_snapshot(handle: &DashSdk, group_id: Identifier) -> Result { + let (info, metadata, proof) = ContractGroupInfo::fetch_with_metadata_and_proof( + &handle.get_sdk(), group_id, Some(handle.get_request_settings()), + ).await.map_err(|e| e.to_string())?; + let Some(info) = info else { return Ok(serde_json::Value::Null); }; + let block = GroupSnapshotBlock::from_proof(&metadata, &proof)?; + let (contracts, document_types, tokens) = tokio::try_join!( + fetch_group_members(handle, ContractGroupMembersPageQuery::contracts(group_id).with_limit(GROUP_PAGE_SIZE), &block), + fetch_group_members(handle, ContractGroupMembersPageQuery::document_types(group_id).with_limit(GROUP_PAGE_SIZE), &block), + fetch_group_members(handle, ContractGroupMembersPageQuery::tokens(group_id).with_limit(GROUP_PAGE_SIZE), &block), + )?; + if contracts.len() + document_types.len() + tokens.len() > MAX_REVIEW_GROUP_MEMBERS { + return Err("Contract group is too large to review completely in this wallet".into()); + } + let admins: Vec = info.owner().admin_ids().into_iter().flatten() + .map(|id| id.to_string(Encoding::Base58)).collect(); + Ok(serde_json::json!({ + "id": group_id.to_string(Encoding::Base58), "ownerId": info.owner().owner_id().to_string(Encoding::Base58), + "adminIds": admins, "name": info.name(), "description": info.description(), + "contracts": contracts, "documentTypes": document_types, "tokens": tokens, + })) +} + +/// A complete proof-verified group scope at one block, not an unproved or owner-only approximation. +/// Null JSON means proved absence; partial reads and proof failures are errors. +#[ferment_macro::export] +pub fn fetch_contract_group_snapshot_with_sdk(rust_sdk: *mut DashSdk, group_id: Identifier) -> Result, String> { + let handle = unsafe { &*rust_sdk }; + handle.get_runtime().block_on(async { + for attempt in 0..3 { + match fetch_group_snapshot(handle, group_id).await { + Err(e) if e == GROUP_SNAPSHOT_CHANGED && attempt < 2 => continue, + result => return serde_json::to_vec(&result?).map_err(|e| e.to_string()), + } + } + unreachable!() + }) +} + +#[cfg(test)] +mod group_scope_tests { + use super::*; + + #[test] + fn scope_requires_one_verified_block() { + let metadata = ResponseMetadata { height: 42, chain_id: "testnet".into(), ..Default::default() }; + let proof = Proof { block_id_hash: vec![1; 32], ..Default::default() }; + let block = GroupSnapshotBlock::from_proof(&metadata, &proof).unwrap(); + assert!(block.require_same(&metadata, &proof).is_ok()); + let changed = Proof { block_id_hash: vec![2; 32], ..Default::default() }; + assert_eq!(block.require_same(&metadata, &changed).unwrap_err(), GROUP_SNAPSHOT_CHANGED); + let next = ResponseMetadata { height: 43, ..metadata.clone() }; + assert_eq!(block.require_same(&next, &proof).unwrap_err(), GROUP_SNAPSHOT_CHANGED); + assert!(GroupSnapshotBlock::from_proof(&metadata, &Proof::default()).is_err()); + } + + #[test] + fn pagination_requires_the_page_after_a_full_page_and_never_truncates() { + let id = Identifier::from([1; 32]); + let query = ContractGroupMembersPageQuery::contracts(id).with_limit(GROUP_PAGE_SIZE); + let full = ContractGroupMembersPage::Contracts((0..100).map(|n| Identifier::from([n; 32])).collect()); + let mut values = Vec::new(); + let next = append_group_page(&query, &full, &mut values).unwrap().unwrap(); + assert_eq!(values.len(), 100); + assert_ne!(query, next); + assert!(append_group_page(&next, &ContractGroupMembersPage::Contracts(vec![]), &mut values).unwrap().is_none()); + let mut oversized = vec![serde_json::Value::Null; MAX_REVIEW_GROUP_MEMBERS]; + assert!(append_group_page(&query, &full, &mut oversized).is_err()); + assert_eq!(oversized.len(), MAX_REVIEW_GROUP_MEMBERS); + assert!(append_group_page(&next, &full, &mut values).is_err()); + } + + #[test] + fn scope_preserves_all_member_kinds() { + let id = Identifier::from([3; 32]); + assert_eq!(group_page_values(&ContractGroupMembersPage::Contracts(vec![id]))[0], id.to_string(Encoding::Base58)); + assert_eq!(group_page_values(&ContractGroupMembersPage::DocumentTypes(vec![(id, "profile".into())]))[0]["documentType"], "profile"); + assert_eq!(group_page_values(&ContractGroupMembersPage::Tokens(vec![(id, 65535)]))[0]["tokenPosition"], 65535); + } +} + /// Reads the block timestamp from a fresh proof-verified identity query. #[ferment_macro::export] pub fn fetch_platform_time_with_sdk( From d475d12f4d152e60bed0e98703e16ef9c6aba869 Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Mon, 26 Oct 2026 08:50:00 -0700 Subject: [PATCH 12/21] Pin DashJ 24 to the published timestamped build Use 24.0.0-20261024.220449-1 instead of the moving SNAPSHOT alias. Record the publicly resolved JAR checksum and snapshot retention caveat; native SDK code is unchanged. --- build.gradle | 2 +- docs/dashj-build-pin.md | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 docs/dashj-build-pin.md diff --git a/build.gradle b/build.gradle index 31e5b1dc..a5800975 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ buildscript { ext.version = '5.0.0-SNAPSHOT' ext.kotlin_version = '2.1.20' - ext.dashj_version = '24.0.0-SNAPSHOT' + ext.dashj_version = '24.0.0-20261024.220449-1' repositories { google() // Required for Android library and application projects mavenCentral() diff --git a/docs/dashj-build-pin.md b/docs/dashj-build-pin.md new file mode 100644 index 00000000..3e744537 --- /dev/null +++ b/docs/dashj-build-pin.md @@ -0,0 +1,18 @@ +# DashJ Build Pin + +Core 24 support uses `org.dashj:dashj-core:24.0.0-20261024.220449-1`, +not the moving `24.0.0-SNAPSHOT` alias. This is the timestamped publication +currently listed in the Central Portal snapshot repository: + +https://central.sonatype.com/repository/maven-snapshots/org/dashj/dashj-core/24.0.0-SNAPSHOT/maven-metadata.xml + +The JAR resolved by Gradle from that repository has SHA-256: + +```text +1f2afb88ca62ab910554e3aa9bf40c240111fc3d3379da152bf59bc19e7828bd +``` + +This records the verified artifact; it is not dependency checksum enforcement. +The timestamp fixes the selected build, but the repository may eventually delete +old snapshots. Move to a retained immutable release when available. Native SDK +sources and binaries are unchanged by this dependency pin. From e9d3709f70ba364b6b38e900ee5e6866f4be8bc5 Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Wed, 28 Oct 2026 18:56:10 -0700 Subject: [PATCH 13/21] Preserve purchase operation nonces and expose canonical replay IDs --- docs/token-purchase-replay.md | 35 ++++++ platform-mobile/src/token_purchase.rs | 164 +++++++++++++++++++++++--- 2 files changed, 182 insertions(+), 17 deletions(-) create mode 100644 docs/token-purchase-replay.md diff --git a/docs/token-purchase-replay.md b/docs/token-purchase-replay.md new file mode 100644 index 00000000..c02eb570 --- /dev/null +++ b/docs/token-purchase-replay.md @@ -0,0 +1,35 @@ +# Token Purchase Replay Identity + +The `dash-st` bridge accepts one unsigned token direct purchase. Preparation +returns `requestId`, a SHA-256 digest of a domain-separated canonical tuple: +owner, contract, token ID, token position, quantity, maximum credits and original +identity-contract nonce. Integer quantities and nonces retain unsigned 64-bit +precision. Token display metadata and ignored envelope signing-key IDs are not +part of the operation identity. + +Submission rechecks the complete prepared summary, then uses DPP's existing +token-purchase transition constructor to sign the decoded operation with the +wallet's CRITICAL key and the **original nonce**. It does not sign incoming bytes +and does not substitute a fresh nonce. Normal Platform nonce validation provides +on-chain replay rejection. An identical purchase with a new valid nonce remains +a separate operation; stale requests need a new QR. + +The previous bridge discarded the request nonce and rebuilt through an SDK +builder that allocated a fresh nonce. Hashing original envelope bytes in the +wallet therefore failed to identify equivalent requests. Hashing only displayed +terms would instead have forbidden legitimate repeated purchases. Canonical +identity and preserved submission semantics must be changed together. + +After every broadcast result, including errors, the SDK invalidates the payer's +nonce cache because this operation did not allocate through that cache. Affected +state proofs remain affected-state proofs, not proof that this operation ran; +errors after native handoff still require a durable unknown-outcome receipt. + +Wallet integrations must consume the native request ID, persist it before native +submission and retain it on uncertain outcomes. Older receipts lack the actual +nonce chosen by the previous SDK and need conservative legacy handling. + +Native regressions cover ignored key-ID mutations, nonce and price changes, +unsigned 64-bit precision and signing/readback of all original operation fields. +This is a security fix on the currently pinned Platform version, not a Platform +5.0.1 upgrade. diff --git a/platform-mobile/src/token_purchase.rs b/platform-mobile/src/token_purchase.rs index ed1aa718..0d98eee3 100644 --- a/platform-mobile/src/token_purchase.rs +++ b/platform-mobile/src/token_purchase.rs @@ -1,26 +1,30 @@ use crate::config::EntryPoint; use crate::put::CallbackSigner; use crate::sdk::DashSdk; -use dash_sdk::platform::tokens::builders::purchase::TokenDirectPurchaseTransitionBuilder; +use dash_sdk::platform::transition::broadcast::BroadcastStateTransition; use dash_sdk::platform::Fetch; +use dashcore::hashes::{sha256, Hash}; use dpp::data_contract::accessors::v1::DataContractV1Getters; use dpp::data_contract::associated_token::token_configuration::accessors::v0::TokenConfigurationV0Getters; use dpp::data_contract::associated_token::token_configuration_convention::accessors::v0::TokenConfigurationConventionV0Getters; use dpp::data_contract::DataContract; use dpp::identity::identity_public_key::accessors::v0::IdentityPublicKeyGettersV0; use dpp::identity::identity_public_key::IdentityPublicKey; +use dpp::identity::signer::Signer; use dpp::identity::{Purpose, SecurityLevel}; use dpp::serialization::PlatformDeserializableUntrusted; use dpp::state_transition::batch_transition::batched_transition::{ token_transition::TokenTransition, BatchedTransition, }; +use dpp::state_transition::batch_transition::methods::v1::DocumentsBatchTransitionMethodsV1; use dpp::state_transition::batch_transition::token_base_transition::TokenBaseTransition; use dpp::state_transition::batch_transition::token_direct_purchase_transition::TokenDirectPurchaseTransition; use dpp::state_transition::batch_transition::BatchTransition; +use dpp::state_transition::proof_result::StateTransitionProofResult; use dpp::state_transition::StateTransition; +use dpp::version::PlatformVersion; use platform_value::{string_encoding::Encoding, Identifier}; use serde_json::json; -use std::sync::Arc; #[derive(Debug, PartialEq)] struct Purchase { @@ -30,6 +34,48 @@ struct Purchase { position: u16, amount: u64, price: u64, + nonce: u64, +} + +impl Purchase { + fn request_id(&self) -> Result { + let canonical = serde_json::to_vec(&( + "dash-st-purchase-v2", + self.owner.to_string(Encoding::Base58), + self.contract.to_string(Encoding::Base58), + self.token.to_string(Encoding::Base58), + self.position, + self.amount.to_string(), + self.price.to_string(), + self.nonce.to_string(), + )) + .map_err(|e| e.to_string())?; + Ok(sha256::Hash::hash(&canonical).to_string()) + } +} + +async fn sign_purchase>( + purchase: &Purchase, + key: &IdentityPublicKey, + signer: &S, + version: &PlatformVersion, +) -> Result { + BatchTransition::new_token_direct_purchase_transition( + purchase.token, + purchase.owner, + purchase.contract, + purchase.position, + purchase.amount, + purchase.price, + key, + purchase.nonce, + 0, + signer, + version, + None, + ) + .await + .map_err(|e| e.to_string()) } fn decode(bytes: &[u8]) -> Result { @@ -72,6 +118,7 @@ fn decode(bytes: &[u8]) -> Result { position: base.token_contract_position, amount: purchase.token_count, price: purchase.total_agreed_price, + nonce: base.identity_contract_nonce, }) } @@ -89,6 +136,8 @@ async fn contract_and_summary( .ok_or("Token not found at contract position")?; let conventions = token.conventions(); let summary = json!({ + "requestId": purchase.request_id()?, + "nonce": purchase.nonce.to_string(), "ownerId": purchase.owner.to_string(Encoding::Base58), "contractId": purchase.contract.to_string(Encoding::Base58), "tokenId": purchase.token.to_string(Encoding::Base58), @@ -122,7 +171,7 @@ pub fn prepare_token_purchase_sdk( }) } -/// Rebuilds a purchase from approved values using a fresh nonce and the wallet's own key. +/// Rebuilds the approved operation with its original nonce and the wallet's own key. /// Success is a proof-verified affected-state result, not necessarily proof of this operation's execution. #[ferment_macro::export] pub fn submit_token_purchase_sdk( @@ -148,25 +197,26 @@ pub fn submit_token_purchase_sdk( let handle = unsafe { &*rust_sdk }; handle.get_runtime().block_on(async { let sdk = handle.get_sdk(); - let (contract, summary) = contract_and_summary(&sdk, &purchase).await?; + let (_, summary) = contract_and_summary(&sdk, &purchase).await?; if summary != approved_summary { return Err("Token metadata or purchase terms changed. Scan again.".into()); } let signer = CallbackSigner::new(signer_context, signer_callback).map_err(|e| e.to_string())?; - sdk.token_purchase( - TokenDirectPurchaseTransitionBuilder::new( - Arc::new(contract), - purchase.position, - owner, - purchase.amount, - purchase.price, - ), - &signing_key, - &signer, - ) - .await - .map_err(|e| e.to_string())?; + // Never replace an incoming operation's nonce: doing so would turn a replay into a new debit. + let transition = sign_purchase(&purchase, &signing_key, &signer, sdk.version()).await?; + let result = transition + .broadcast_and_wait_for_affected_state::(&sdk, None) + .await; + // This operation did not allocate its nonce through the SDK cache. + sdk.refresh_identity_nonce(&owner).await; + let proof = result.map_err(|e| e.to_string())?; + match proof { + StateTransitionProofResult::VerifiedTokenBalance(..) + | StateTransitionProofResult::VerifiedTokenActionWithDocument(..) + | StateTransitionProofResult::VerifiedTokenGroupActionWithDocument(..) => {} + _ => return Err("Unexpected token purchase proof result".into()), + } Ok(b"submitted".to_vec()) }) } @@ -212,6 +262,86 @@ mod tests { let parsed = decode(&encode(batch())).unwrap(); assert_eq!(parsed.amount, u64::MAX); assert_eq!(parsed.price, 50_000_000_000); + assert_eq!(parsed.nonce, 42); + } + #[test] + fn canonical_id_ignores_envelope_key_id_but_binds_the_signed_nonce_and_terms() { + let original = decode(&encode(batch())).unwrap(); + let mut changed_key = batch(); + changed_key.signature_public_key_id = 1234; + assert_eq!( + original.request_id().unwrap(), + decode(&encode(changed_key)).unwrap().request_id().unwrap() + ); + let mut changed_nonce = batch(); + let BatchedTransition::Token(TokenTransition::DirectPurchase( + TokenDirectPurchaseTransition::V0(p), + )) = &mut changed_nonce.transitions[0] + else { + unreachable!() + }; + let TokenBaseTransition::V0(base) = &mut p.base; + base.identity_contract_nonce += 1; + assert_ne!( + original.request_id().unwrap(), + decode(&encode(changed_nonce)) + .unwrap() + .request_id() + .unwrap() + ); + let mut changed_terms = batch(); + let BatchedTransition::Token(TokenTransition::DirectPurchase( + TokenDirectPurchaseTransition::V0(p), + )) = &mut changed_terms.transitions[0] + else { + unreachable!() + }; + p.total_agreed_price += 1; + assert_ne!( + original.request_id().unwrap(), + decode(&encode(changed_terms)) + .unwrap() + .request_id() + .unwrap() + ); + } + #[tokio::test] + async fn wallet_signing_preserves_the_operation_nonce_and_all_purchase_terms() { + use dashcore::secp256k1::{PublicKey, Secp256k1, SecretKey}; + use dpp::identity::identity_public_key::v0::IdentityPublicKeyV0; + use dpp::identity::KeyType; + use simple_signer::signer::SimpleSigner; + let secret = [1; 32]; + let public = + PublicKey::from_secret_key(&Secp256k1::new(), &SecretKey::from_slice(&secret).unwrap()); + let key = IdentityPublicKey::V0(IdentityPublicKeyV0 { + id: 7, + purpose: Purpose::AUTHENTICATION, + security_level: SecurityLevel::CRITICAL, + contract_bounds: None, + key_type: KeyType::ECDSA_SECP256K1, + read_only: false, + data: public.serialize().to_vec().into(), + disabled_at: None, + }); + let mut signer = SimpleSigner::default(); + signer.add_identity_public_key(key.clone(), secret); + let original = decode(&encode(batch())).unwrap(); + let transition = sign_purchase(&original, &key, &signer, PlatformVersion::latest()) + .await + .unwrap(); + let StateTransition::Batch(BatchTransition::V1(mut signed)) = transition else { + panic!("Expected batch V1") + }; + assert_eq!(signed.signature_public_key_id, 7); + assert!(!signed.signature.is_empty()); + signed.signature = Default::default(); + let rebuilt = decode(&encode(signed)).unwrap(); + assert_eq!(rebuilt, original); + assert_eq!( + rebuilt.request_id().unwrap(), + original.request_id().unwrap() + ); } #[test] fn rejects_multiple_operations_fee_increase_and_trailing_bytes() { From f4add6fe760d8813218cf92aafa2114e27ab214a Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Thu, 29 Oct 2026 09:33:14 -0700 Subject: [PATCH 14/21] Upgrade Platform SDK integration to 5.0.1 --- .../workflows/build-and-verify-alignment.yml | 9 +- README.md | 6 +- build.gradle | 2 +- dash-sdk-android/build.gradle | 4 +- dash-sdk-android/src/main/rust/Cargo.lock | 97 +++++++++++-------- dash-sdk-bindings/Cargo.lock | 97 +++++++++++-------- dash-sdk-bindings/src/fermented.rs | 2 +- dash-sdk-java/build.gradle | 4 +- docs/token-purchase-replay.md | 4 +- dpp/build.gradle | 4 +- platform-mobile/Cargo.lock | 93 +++++++++++------- platform-revision.txt | 2 +- 12 files changed, 197 insertions(+), 127 deletions(-) diff --git a/.github/workflows/build-and-verify-alignment.yml b/.github/workflows/build-and-verify-alignment.yml index 82105c83..52b81a21 100644 --- a/.github/workflows/build-and-verify-alignment.yml +++ b/.github/workflows/build-and-verify-alignment.yml @@ -47,7 +47,7 @@ jobs: - name: clone platform repo run: | - git clone --branch ferment-5.0 https://github.com/HashEngineering/platform.git ../platform + git clone --branch ferment-5.0.1 https://github.com/HashEngineering/platform.git ../platform git -C ../platform checkout --detach "$(cat platform-revision.txt)" - name: clone rs-x11-hash repo @@ -135,6 +135,13 @@ jobs: echo done + sdk_aar=dash-sdk-android/build/outputs/aar/dash-sdk-android-release.aar + test -s "$sdk_aar" + unzip -Z1 "$sdk_aar" > "$RUNNER_TEMP/sdk-aar-entries.txt" + for abi in arm64-v8a x86_64; do + grep -Fxq "jni/$abi/libsdklib.so" "$RUNNER_TEMP/sdk-aar-entries.txt" + done + - name: Upload build artifacts uses: actions/upload-artifact@v4 if: always() diff --git a/README.md b/README.md index d91497e9..3a6f0c65 100644 --- a/README.md +++ b/README.md @@ -14,13 +14,13 @@ kotlin-platform is the library that supports Platform functionality for the Java ## Build Instructions The sibling `../platform` checkout must use `HashEngineering/platform`, branch -`ferment-5.0`, at the commit in `platform-revision.txt`. This includes upstream -Platform `v5.0.0-rc.7` and the Ferment/JNI compatibility patches. CI uses the same +`ferment-5.0.1`, at the commit in `platform-revision.txt`. This includes upstream +Platform `v5.0.1` and the Ferment/JNI compatibility patches. CI uses the same revision; the Platform commit must be pushed before running CI for an updated pin. Desktop Rust uses `1.98.1`; Android uses `nightly-2026-09-24` with `rust-src`. ```bash -git clone --branch ferment-5.0 https://github.com/HashEngineering/platform.git ../platform +git clone --branch ferment-5.0.1 https://github.com/HashEngineering/platform.git ../platform git -C ../platform checkout --detach "$(cat platform-revision.txt)" ``` diff --git a/build.gradle b/build.gradle index a5800975..301bc4a4 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ buildscript { - ext.version = '5.0.0-SNAPSHOT' + ext.version = '5.0.1-SNAPSHOT' ext.kotlin_version = '2.1.20' ext.dashj_version = '24.0.0-20261024.220449-1' repositories { diff --git a/dash-sdk-android/build.gradle b/dash-sdk-android/build.gradle index 556cd837..464d8f3c 100644 --- a/dash-sdk-android/build.gradle +++ b/dash-sdk-android/build.gradle @@ -233,6 +233,8 @@ afterEvaluate { } signing { required { gradle.taskGraph.hasTask("publish") } - sign publishing.publications.release + if (!project.hasProperty('skipSigning')) { + sign publishing.publications.release + } } } diff --git a/dash-sdk-android/src/main/rust/Cargo.lock b/dash-sdk-android/src/main/rust/Cargo.lock index 179e03d9..9bb9960b 100644 --- a/dash-sdk-android/src/main/rust/Cargo.lock +++ b/dash-sdk-android/src/main/rust/Cargo.lock @@ -127,7 +127,7 @@ checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" [[package]] name = "app-connect-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -564,6 +564,12 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cfg_aliases" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" + [[package]] name = "chrono" version = "0.4.38" @@ -808,7 +814,7 @@ dependencies = [ [[package]] name = "dapi-grpc" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "dash-platform-macros", "futures-core", @@ -862,7 +868,7 @@ dependencies = [ [[package]] name = "dash-async" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "futures", "thiserror 2.0.18", @@ -873,7 +879,7 @@ dependencies = [ [[package]] name = "dash-context-provider" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "dash-async", "dpp", @@ -904,7 +910,7 @@ dependencies = [ [[package]] name = "dash-platform-macros" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "heck 0.5.0", "quote", @@ -913,7 +919,7 @@ dependencies = [ [[package]] name = "dash-platform-queries" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -930,7 +936,7 @@ dependencies = [ [[package]] name = "dash-sdk" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "arc-swap", "async-trait", @@ -1057,7 +1063,7 @@ dependencies = [ [[package]] name = "dashpay-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -1067,7 +1073,7 @@ dependencies = [ [[package]] name = "data-contracts" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "app-connect-contract", "dashpay-contract", @@ -1159,7 +1165,7 @@ dependencies = [ [[package]] name = "document-history-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -1175,7 +1181,7 @@ checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" [[package]] name = "dpns-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -1185,7 +1191,7 @@ dependencies = [ [[package]] name = "dpp" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "anyhow", "async-trait", @@ -1233,7 +1239,7 @@ dependencies = [ [[package]] name = "dpp-json-convertible-derive" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "proc-macro2", "quote", @@ -1242,7 +1248,7 @@ dependencies = [ [[package]] name = "drive" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "byteorder", "derive_more 1.0.0", @@ -1270,7 +1276,7 @@ dependencies = [ [[package]] name = "drive-proof-verifier" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -2383,7 +2389,7 @@ dependencies = [ [[package]] name = "keyword-search-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -2405,9 +2411,9 @@ checksum = "744a4c881f502e98c2241d2e5f50040ac73b30194d64452bb6260393b53f0dc9" [[package]] name = "libc" -version = "0.2.186" +version = "0.2.191" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" [[package]] name = "libm" @@ -2457,7 +2463,7 @@ dependencies = [ [[package]] name = "masternode-reward-shares-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -2516,7 +2522,7 @@ dependencies = [ [[package]] name = "moderation-charters-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -2549,6 +2555,18 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9252111cf132ba0929b6f8e030cac2a24b507f3a4d6db6fb2896f27b354c714b" +[[package]] +name = "nix" +version = "0.31.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d" +dependencies = [ + "bitflags 2.13.0", + "cfg-if", + "cfg_aliases", + "libc", +] + [[package]] name = "nohash-hasher" version = "0.2.0" @@ -2887,7 +2905,7 @@ dependencies = [ [[package]] name = "platform-encryption" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "aes", "cbc", @@ -2945,7 +2963,7 @@ dependencies = [ [[package]] name = "platform-serialization" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "grovedb-bincode", "platform-version", @@ -2953,7 +2971,7 @@ dependencies = [ [[package]] name = "platform-serialization-derive" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "proc-macro2", "quote", @@ -2963,7 +2981,7 @@ dependencies = [ [[package]] name = "platform-value" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "base64 0.22.1", "bs58", @@ -2984,7 +3002,7 @@ dependencies = [ [[package]] name = "platform-version" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "ferment-macro 0.2.3", "grovedb-bincode", @@ -2996,7 +3014,7 @@ dependencies = [ [[package]] name = "platform-versioning" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "proc-macro2", "quote", @@ -3268,7 +3286,7 @@ dependencies = [ [[package]] name = "rs-dapi-client" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "backon", "chrono", @@ -3661,7 +3679,7 @@ checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" [[package]] name = "simple-signer" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "async-trait", "base64 0.22.1", @@ -3866,8 +3884,8 @@ dependencies = [ [[package]] name = "tenderdash-abci" -version = "1.8.0" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" +version = "1.8.1" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.1#eebfc46cc64b27022ccbbb3924604dd87a10c340" dependencies = [ "bytes", "hex", @@ -3881,8 +3899,8 @@ dependencies = [ [[package]] name = "tenderdash-proto" -version = "1.8.0" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" +version = "1.8.1" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.1#eebfc46cc64b27022ccbbb3924604dd87a10c340" dependencies = [ "bytes", "chrono", @@ -3899,8 +3917,8 @@ dependencies = [ [[package]] name = "tenderdash-proto-compiler" -version = "1.8.0" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" +version = "1.8.1" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.1#eebfc46cc64b27022ccbbb3924604dd87a10c340" dependencies = [ "fs_extra", "prost-build", @@ -4033,7 +4051,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "token-history-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -4604,7 +4622,7 @@ dependencies = [ [[package]] name = "wallet-utils-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -4883,7 +4901,7 @@ checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1" [[package]] name = "withdrawals-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "num_enum 0.5.11", "platform-value", @@ -4947,14 +4965,15 @@ dependencies = [ [[package]] name = "zip" -version = "8.6.0" +version = "9.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d04a6b5381502aa6087c94c669499eb1602eb9c5e8198e534de571f7154809b" +checksum = "6e04976da629d3b04204ba8105b396a193af8ad2583b2c79bfb3ab8af580a11e" dependencies = [ "crc32fast", "flate2", "indexmap 2.14.0", "memchr", + "nix", "typed-path", "zopfli", ] diff --git a/dash-sdk-bindings/Cargo.lock b/dash-sdk-bindings/Cargo.lock index a24ceff1..dcf0b81d 100644 --- a/dash-sdk-bindings/Cargo.lock +++ b/dash-sdk-bindings/Cargo.lock @@ -101,7 +101,7 @@ checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61" [[package]] name = "app-connect-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -527,6 +527,12 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" +[[package]] +name = "cfg_aliases" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" + [[package]] name = "chrono" version = "0.4.43" @@ -779,7 +785,7 @@ dependencies = [ [[package]] name = "dapi-grpc" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "dash-platform-macros", "futures-core", @@ -833,7 +839,7 @@ dependencies = [ [[package]] name = "dash-async" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "futures", "thiserror 2.0.18", @@ -844,7 +850,7 @@ dependencies = [ [[package]] name = "dash-context-provider" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "dash-async", "dpp", @@ -875,7 +881,7 @@ dependencies = [ [[package]] name = "dash-platform-macros" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "heck 0.5.0", "quote", @@ -884,7 +890,7 @@ dependencies = [ [[package]] name = "dash-platform-queries" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -901,7 +907,7 @@ dependencies = [ [[package]] name = "dash-sdk" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "arc-swap", "async-trait", @@ -1028,7 +1034,7 @@ dependencies = [ [[package]] name = "dashpay-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -1038,7 +1044,7 @@ dependencies = [ [[package]] name = "data-contracts" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "app-connect-contract", "dashpay-contract", @@ -1143,7 +1149,7 @@ dependencies = [ [[package]] name = "document-history-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -1159,7 +1165,7 @@ checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" [[package]] name = "dpns-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -1169,7 +1175,7 @@ dependencies = [ [[package]] name = "dpp" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "anyhow", "async-trait", @@ -1217,7 +1223,7 @@ dependencies = [ [[package]] name = "dpp-json-convertible-derive" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "proc-macro2", "quote", @@ -1226,7 +1232,7 @@ dependencies = [ [[package]] name = "drive" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "byteorder", "derive_more 1.0.0", @@ -1254,7 +1260,7 @@ dependencies = [ [[package]] name = "drive-proof-verifier" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -2453,7 +2459,7 @@ dependencies = [ [[package]] name = "keyword-search-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -2475,9 +2481,9 @@ checksum = "744a4c881f502e98c2241d2e5f50040ac73b30194d64452bb6260393b53f0dc9" [[package]] name = "libc" -version = "0.2.180" +version = "0.2.191" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" [[package]] name = "libm" @@ -2538,7 +2544,7 @@ dependencies = [ [[package]] name = "masternode-reward-shares-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -2596,7 +2602,7 @@ dependencies = [ [[package]] name = "moderation-charters-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -2630,6 +2636,18 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9252111cf132ba0929b6f8e030cac2a24b507f3a4d6db6fb2896f27b354c714b" +[[package]] +name = "nix" +version = "0.31.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d" +dependencies = [ + "bitflags 2.10.0", + "cfg-if", + "cfg_aliases", + "libc", +] + [[package]] name = "nohash-hasher" version = "0.2.0" @@ -2959,7 +2977,7 @@ dependencies = [ [[package]] name = "platform-encryption" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "aes", "cbc", @@ -3017,7 +3035,7 @@ dependencies = [ [[package]] name = "platform-serialization" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "grovedb-bincode", "platform-version", @@ -3025,7 +3043,7 @@ dependencies = [ [[package]] name = "platform-serialization-derive" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "proc-macro2", "quote", @@ -3035,7 +3053,7 @@ dependencies = [ [[package]] name = "platform-value" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "base64 0.22.1", "bs58", @@ -3056,7 +3074,7 @@ dependencies = [ [[package]] name = "platform-version" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "ferment-macro", "grovedb-bincode", @@ -3068,7 +3086,7 @@ dependencies = [ [[package]] name = "platform-versioning" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "proc-macro2", "quote", @@ -3354,7 +3372,7 @@ dependencies = [ [[package]] name = "rs-dapi-client" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "backon", "chrono", @@ -3741,7 +3759,7 @@ checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2" [[package]] name = "simple-signer" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "async-trait", "base64 0.22.1", @@ -3942,8 +3960,8 @@ dependencies = [ [[package]] name = "tenderdash-abci" -version = "1.8.0" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" +version = "1.8.1" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.1#eebfc46cc64b27022ccbbb3924604dd87a10c340" dependencies = [ "bytes", "hex", @@ -3957,8 +3975,8 @@ dependencies = [ [[package]] name = "tenderdash-proto" -version = "1.8.0" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" +version = "1.8.1" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.1#eebfc46cc64b27022ccbbb3924604dd87a10c340" dependencies = [ "bytes", "chrono", @@ -3975,8 +3993,8 @@ dependencies = [ [[package]] name = "tenderdash-proto-compiler" -version = "1.8.0" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" +version = "1.8.1" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.1#eebfc46cc64b27022ccbbb3924604dd87a10c340" dependencies = [ "fs_extra", "prost-build", @@ -4118,7 +4136,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "token-history-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -4714,7 +4732,7 @@ dependencies = [ [[package]] name = "wallet-utils-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -5124,7 +5142,7 @@ checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" [[package]] name = "withdrawals-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "num_enum 0.5.11", "platform-value", @@ -5270,14 +5288,15 @@ dependencies = [ [[package]] name = "zip" -version = "8.6.0" +version = "9.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d04a6b5381502aa6087c94c669499eb1602eb9c5e8198e534de571f7154809b" +checksum = "6e04976da629d3b04204ba8105b396a193af8ad2583b2c79bfb3ab8af580a11e" dependencies = [ "crc32fast", "flate2", "indexmap 2.13.0", "memchr", + "nix", "typed-path", "zopfli", ] diff --git a/dash-sdk-bindings/src/fermented.rs b/dash-sdk-bindings/src/fermented.rs index 77c86abb..92505fa6 100644 --- a/dash-sdk-bindings/src/fermented.rs +++ b/dash-sdk-bindings/src/fermented.rs @@ -1 +1 @@ -# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod platform_value { use crate as dash_sdk_bindings ; pub mod macros { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod types { use crate as dash_sdk_bindings ; pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod eq { use crate as dash_sdk_bindings ; } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_snapshot_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_snapshot_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_snapshot_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_current_contract_key_id_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_current_contract_key_id_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id) , purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_elements { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod token { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod genesis_core_height { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } pub mod rekey_unsigned_integer_index_values { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract { use crate as dash_sdk_bindings ; } pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod burn_from_pool { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod queue { use crate as dash_sdk_bindings ; pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod backfill_historical_credit_pool_nullifiers { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_group_action { use crate as dash_sdk_bindings ; } pub mod add_new_groups { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith , Contains , ContainsAny } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith , drive_query_conditions_WhereOperator :: Contains => drive :: query :: conditions :: WhereOperator :: Contains , drive_query_conditions_WhereOperator :: ContainsAny => drive :: query :: conditions :: WhereOperator :: ContainsAny } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , drive :: query :: conditions :: WhereOperator :: Contains => drive_query_conditions_WhereOperator :: Contains , drive :: query :: conditions :: WhereOperator :: ContainsAny => drive_query_conditions_WhereOperator :: ContainsAny , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , drive_query_conditions_WhereOperator :: Contains => { } , drive_query_conditions_WhereOperator :: ContainsAny => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Contains_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Contains { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_ContainsAny_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: ContainsAny { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } } } pub mod util { use crate as dash_sdk_bindings ; pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod convert { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } } pub mod vec { use crate as dash_sdk_bindings ; } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod json_schema { use crate as dash_sdk_bindings ; } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod get_raw_array_elements_for_document_type { use crate as dash_sdk_bindings ; } } } pub mod fee { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod metadata { use crate as dash_sdk_bindings ; } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod memo { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer_map { use crate as dash_sdk_bindings ; } pub mod safe_integer { use crate as dash_sdk_bindings ; } } } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod config { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } pub mod reason { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; } pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod distribution_function { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod encode { use crate as dash_sdk_bindings ; } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod outlives_delete { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod array { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod string_transformations { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod reference_where { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } } pub mod schema { use crate as dash_sdk_bindings ; pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod expand_property_type_shorthands { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } } } pub mod block { use crate as dash_sdk_bindings ; pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod extended_block_info { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod compile { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod status { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } } } pub mod bls { use crate as dash_sdk_bindings ; } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod contract_group { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod consensus { use crate as dash_sdk_bindings ; pub mod fee { use crate as dash_sdk_bindings ; } pub mod state { use crate as dash_sdk_bindings ; pub mod group { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } } pub mod basic { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } } pub mod non_consensus_error { use crate as dash_sdk_bindings ; } } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod sync { use crate as dash_sdk_bindings ; } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod core { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod dash_core_client { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod platform { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod burn { use crate as dash_sdk_bindings ; } } pub mod builders { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod documents { use crate as dash_sdk_bindings ; pub mod contest_fund { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod identities_contract_keys_query { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod contested_queries { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod readers { use crate as dash_sdk_bindings ; } pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } } pub mod verify { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; } pub mod unproved { use crate as dash_sdk_bindings ; } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file +# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod drive { use crate as dash_sdk_bindings ; # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } pub mod queue { use crate as dash_sdk_bindings ; pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } } } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identity_by_non_unique_public_key_hash_two_proofs { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } pub mod rekey_unsigned_integer_index_values { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract { use crate as dash_sdk_bindings ; } pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod vote_storage_form { use crate as dash_sdk_bindings ; } pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_group_action { use crate as dash_sdk_bindings ; } pub mod add_new_groups { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_groups { use crate as dash_sdk_bindings ; } pub mod for_add_group_action { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod backfill_historical_credit_pool_nullifiers { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod unshield { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash_two_proofs { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod system_contracts { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod calculate_fee { use crate as dash_sdk_bindings ; } pub mod op { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith , Contains , ContainsAny } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith , drive_query_conditions_WhereOperator :: Contains => drive :: query :: conditions :: WhereOperator :: Contains , drive_query_conditions_WhereOperator :: ContainsAny => drive :: query :: conditions :: WhereOperator :: ContainsAny } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , drive :: query :: conditions :: WhereOperator :: Contains => drive_query_conditions_WhereOperator :: Contains , drive :: query :: conditions :: WhereOperator :: ContainsAny => drive_query_conditions_WhereOperator :: ContainsAny , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , drive_query_conditions_WhereOperator :: Contains => { } , drive_query_conditions_WhereOperator :: ContainsAny => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Contains_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Contains { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_ContainsAny_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: ContainsAny { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod replace { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod types { use crate as dash_sdk_bindings ; pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } } pub mod macros { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } pub mod system_bytes { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod index { use crate as dash_sdk_bindings ; } } pub mod dpp { use crate as dash_sdk_bindings ; # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } pub mod methods { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod config { use crate as dash_sdk_bindings ; pub mod moderation { use crate as dash_sdk_bindings ; pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } pub mod reason { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod expand_property_type_shorthands { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod property { use crate as dash_sdk_bindings ; pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod string_transformations { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod reference_where { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod array { use crate as dash_sdk_bindings ; } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod outlives_delete { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; } pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod encode { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod group_action { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod token_event { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod document { use crate as dash_sdk_bindings ; # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } pub mod document_patch { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } pub mod deserialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_array_elements_for_document_type { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod new { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } } pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } } pub mod util { use crate as dash_sdk_bindings ; pub mod json_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod map { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } pub mod convert { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod vec { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod json_path { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod bls { use crate as dash_sdk_bindings ; } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod fee { use crate as dash_sdk_bindings ; } pub mod state { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod basic { use crate as dash_sdk_bindings ; pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } } } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer { use crate as dash_sdk_bindings ; } pub mod safe_integer_map { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } } pub mod fee { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod platform { use crate as dash_sdk_bindings ; pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } pub mod contested_queries { use crate as dash_sdk_bindings ; } } pub mod identities_contract_keys_query { use crate as dash_sdk_bindings ; } pub mod documents { use crate as dash_sdk_bindings ; pub mod contest_fund { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod requests { use crate as dash_sdk_bindings ; } pub mod readers { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod burn { use crate as dash_sdk_bindings ; } } pub mod builders { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod transition { use crate as dash_sdk_bindings ; } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod sync { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod core { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod dash_core_client { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_current_contract_key_id_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_current_contract_key_id_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id) , purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_snapshot_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_snapshot_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_snapshot_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod verify { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } } pub mod unproved { use crate as dash_sdk_bindings ; } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file diff --git a/dash-sdk-java/build.gradle b/dash-sdk-java/build.gradle index 4b54910b..8fc78210 100644 --- a/dash-sdk-java/build.gradle +++ b/dash-sdk-java/build.gradle @@ -209,7 +209,9 @@ jreleaser { signing { required { gradle.taskGraph.hasTask("publish") } - sign publishing.publications.mavenJava + if (!project.hasProperty('skipSigning')) { + sign publishing.publications.mavenJava + } } javadoc { diff --git a/docs/token-purchase-replay.md b/docs/token-purchase-replay.md index c02eb570..0bc9a672 100644 --- a/docs/token-purchase-replay.md +++ b/docs/token-purchase-replay.md @@ -31,5 +31,5 @@ nonce chosen by the previous SDK and need conservative legacy handling. Native regressions cover ignored key-ID mutations, nonce and price changes, unsigned 64-bit precision and signing/readback of all original operation fields. -This is a security fix on the currently pinned Platform version, not a Platform -5.0.1 upgrade. +This security fix predates the Platform 5.0.1 upgrade and must remain intact +through it. diff --git a/dpp/build.gradle b/dpp/build.gradle index 0c26d518..23524d9c 100644 --- a/dpp/build.gradle +++ b/dpp/build.gradle @@ -203,7 +203,9 @@ jreleaser { signing { required { gradle.taskGraph.hasTask("publish") } - sign publishing.publications.mavenJava + if (!project.hasProperty('skipSigning')) { + sign publishing.publications.mavenJava + } } tasks.withType(Copy) { diff --git a/platform-mobile/Cargo.lock b/platform-mobile/Cargo.lock index 49d824dc..6e462316 100644 --- a/platform-mobile/Cargo.lock +++ b/platform-mobile/Cargo.lock @@ -127,7 +127,7 @@ checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" [[package]] name = "app-connect-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -513,6 +513,12 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cfg_aliases" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" + [[package]] name = "chrono" version = "0.4.38" @@ -757,7 +763,7 @@ dependencies = [ [[package]] name = "dapi-grpc" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "dash-platform-macros", "futures-core", @@ -811,7 +817,7 @@ dependencies = [ [[package]] name = "dash-async" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "futures", "thiserror 2.0.18", @@ -822,7 +828,7 @@ dependencies = [ [[package]] name = "dash-context-provider" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "dash-async", "dpp", @@ -853,7 +859,7 @@ dependencies = [ [[package]] name = "dash-platform-macros" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "heck 0.5.0", "quote", @@ -862,7 +868,7 @@ dependencies = [ [[package]] name = "dash-platform-queries" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -879,7 +885,7 @@ dependencies = [ [[package]] name = "dash-sdk" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "arc-swap", "async-trait", @@ -988,7 +994,7 @@ dependencies = [ [[package]] name = "dashpay-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -998,7 +1004,7 @@ dependencies = [ [[package]] name = "data-contracts" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "app-connect-contract", "dashpay-contract", @@ -1090,7 +1096,7 @@ dependencies = [ [[package]] name = "document-history-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -1106,7 +1112,7 @@ checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" [[package]] name = "dpns-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -1116,7 +1122,7 @@ dependencies = [ [[package]] name = "dpp" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "anyhow", "async-trait", @@ -1164,7 +1170,7 @@ dependencies = [ [[package]] name = "dpp-json-convertible-derive" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "proc-macro2", "quote", @@ -1173,7 +1179,7 @@ dependencies = [ [[package]] name = "drive" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "byteorder", "derive_more 1.0.0", @@ -1201,7 +1207,7 @@ dependencies = [ [[package]] name = "drive-proof-verifier" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "dapi-grpc", "dash-context-provider", @@ -2283,7 +2289,7 @@ dependencies = [ [[package]] name = "keyword-search-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -2357,7 +2363,7 @@ dependencies = [ [[package]] name = "masternode-reward-shares-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -2416,7 +2422,7 @@ dependencies = [ [[package]] name = "moderation-charters-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -2449,6 +2455,18 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9252111cf132ba0929b6f8e030cac2a24b507f3a4d6db6fb2896f27b354c714b" +[[package]] +name = "nix" +version = "0.31.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf20d2fde8ff38632c426f1165ed7436270b44f199fc55284c38276f9db47c3d" +dependencies = [ + "bitflags 2.13.0", + "cfg-if", + "cfg_aliases", + "libc", +] + [[package]] name = "nohash-hasher" version = "0.2.0" @@ -2787,7 +2805,7 @@ dependencies = [ [[package]] name = "platform-encryption" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "aes", "cbc", @@ -2845,7 +2863,7 @@ dependencies = [ [[package]] name = "platform-serialization" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "grovedb-bincode", "platform-version", @@ -2853,7 +2871,7 @@ dependencies = [ [[package]] name = "platform-serialization-derive" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "proc-macro2", "quote", @@ -2863,7 +2881,7 @@ dependencies = [ [[package]] name = "platform-value" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "base64 0.22.1", "bs58", @@ -2884,7 +2902,7 @@ dependencies = [ [[package]] name = "platform-version" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "ferment-macro", "grovedb-bincode", @@ -2896,7 +2914,7 @@ dependencies = [ [[package]] name = "platform-versioning" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "proc-macro2", "quote", @@ -3168,7 +3186,7 @@ dependencies = [ [[package]] name = "rs-dapi-client" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "backon", "chrono", @@ -3539,7 +3557,7 @@ checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe" [[package]] name = "simple-signer" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "async-trait", "base64 0.22.1", @@ -3744,8 +3762,8 @@ dependencies = [ [[package]] name = "tenderdash-abci" -version = "1.8.0" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" +version = "1.8.1" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.1#eebfc46cc64b27022ccbbb3924604dd87a10c340" dependencies = [ "bytes", "hex", @@ -3759,8 +3777,8 @@ dependencies = [ [[package]] name = "tenderdash-proto" -version = "1.8.0" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" +version = "1.8.1" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.1#eebfc46cc64b27022ccbbb3924604dd87a10c340" dependencies = [ "bytes", "chrono", @@ -3777,8 +3795,8 @@ dependencies = [ [[package]] name = "tenderdash-proto-compiler" -version = "1.8.0" -source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.0#2e78da6f66d02f1e0b07a0c220373e5fda335fc9" +version = "1.8.1" +source = "git+https://github.com/dashpay/rs-tenderdash-abci?tag=v1.8.1#eebfc46cc64b27022ccbbb3924604dd87a10c340" dependencies = [ "fs_extra", "prost-build", @@ -3911,7 +3929,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "token-history-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -4465,7 +4483,7 @@ dependencies = [ [[package]] name = "wallet-utils-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "platform-value", "platform-version", @@ -4744,7 +4762,7 @@ checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1" [[package]] name = "withdrawals-contract" -version = "5.0.0-rc.7" +version = "5.0.1" dependencies = [ "num_enum 0.5.11", "platform-value", @@ -4808,14 +4826,15 @@ dependencies = [ [[package]] name = "zip" -version = "8.6.0" +version = "9.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d04a6b5381502aa6087c94c669499eb1602eb9c5e8198e534de571f7154809b" +checksum = "6e04976da629d3b04204ba8105b396a193af8ad2583b2c79bfb3ab8af580a11e" dependencies = [ "crc32fast", "flate2", "indexmap 2.14.0", "memchr", + "nix", "typed-path", "zopfli", ] diff --git a/platform-revision.txt b/platform-revision.txt index fe799420..9efd1b42 100644 --- a/platform-revision.txt +++ b/platform-revision.txt @@ -1 +1 @@ -e179e2dd698a25b1c6caa45065ab3427c0172aff +c5c59b73a23a12d9b9f8ff03ed2eb318e93e1850 From e32047abd47e25ae0595a5d6c3d61af65062d783 Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Thu, 29 Oct 2026 09:55:20 -0700 Subject: [PATCH 15/21] Regenerate Android Ferment bindings for Platform 5.0.1 --- dash-sdk-android/src/main/rust/src/fermented.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dash-sdk-android/src/main/rust/src/fermented.rs b/dash-sdk-android/src/main/rust/src/fermented.rs index a5f00b86..b3e46353 100644 --- a/dash-sdk-android/src/main/rust/src/fermented.rs +++ b/dash-sdk-android/src/main/rust/src/fermented.rs @@ -1 +1 @@ -# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod dpp { use crate as dash_sdk_bindings ; pub mod fee { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod util { use crate as dash_sdk_bindings ; pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod vec { use crate as dash_sdk_bindings ; } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod convert { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod json_schema { use crate as dash_sdk_bindings ; } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } } pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod state { use crate as dash_sdk_bindings ; pub mod voting { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } } pub mod basic { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } } } pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod compile { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transitions")] pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod traits { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } } } pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_array_elements_for_document_type { use crate as dash_sdk_bindings ; } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } pub mod config { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; pub mod reason { use crate as dash_sdk_bindings ; } pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; pub mod conversion { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod index { use crate as dash_sdk_bindings ; pub mod outlives_delete { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod expand_property_type_shorthands { use crate as dash_sdk_bindings ; } } pub mod property { use crate as dash_sdk_bindings ; pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod string_transformations { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod reference_where { use crate as dash_sdk_bindings ; } pub mod array { use crate as dash_sdk_bindings ; } } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod encode { use crate as dash_sdk_bindings ; } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; } pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity_public_key { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod witness { use crate as dash_sdk_bindings ; } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer { use crate as dash_sdk_bindings ; } pub mod safe_integer_map { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } pub mod serde_bytes { use crate as dash_sdk_bindings ; } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } pub mod accessors { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod verify { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod unproved { use crate as dash_sdk_bindings ; } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } } pub mod macros { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod bytes_36 { use crate as dash_sdk_bindings ; } } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod platform { use crate as dash_sdk_bindings ; pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } pub mod contested_queries { use crate as dash_sdk_bindings ; } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod identities_contract_keys_query { use crate as dash_sdk_bindings ; } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod readers { use crate as dash_sdk_bindings ; } pub mod requests { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } pub mod epoch { use crate as dash_sdk_bindings ; } } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod burn { use crate as dash_sdk_bindings ; } } pub mod builders { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } pub mod documents { use crate as dash_sdk_bindings ; pub mod contest_fund { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } } pub mod sync { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod core { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod dash_core_client { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod calculate_fee { use crate as dash_sdk_bindings ; } pub mod op { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } } # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } } pub mod token { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith , Contains , ContainsAny } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith , drive_query_conditions_WhereOperator :: Contains => drive :: query :: conditions :: WhereOperator :: Contains , drive_query_conditions_WhereOperator :: ContainsAny => drive :: query :: conditions :: WhereOperator :: ContainsAny } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , drive :: query :: conditions :: WhereOperator :: Contains => drive_query_conditions_WhereOperator :: Contains , drive :: query :: conditions :: WhereOperator :: ContainsAny => drive_query_conditions_WhereOperator :: ContainsAny , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , drive_query_conditions_WhereOperator :: Contains => { } , drive_query_conditions_WhereOperator :: ContainsAny => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Contains_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Contains { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_ContainsAny_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: ContainsAny { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group { use crate as dash_sdk_bindings ; } pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod backfill_historical_credit_pool_nullifiers { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod transaction { use crate as dash_sdk_bindings ; pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } pub mod queue { use crate as dash_sdk_bindings ; pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod operations { use crate as dash_sdk_bindings ; pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } } pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_groups { use crate as dash_sdk_bindings ; } pub mod for_add_group_action { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod vote_storage_form { use crate as dash_sdk_bindings ; } pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod genesis_core_height { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } pub mod rekey_unsigned_integer_index_values { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_current_contract_key_id_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_current_contract_key_id_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id) , purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_snapshot_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_snapshot_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_snapshot_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file +# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod verify { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod unproved { use crate as dash_sdk_bindings ; } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod transport { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod connection_pool { use crate as dash_sdk_bindings ; } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod index { use crate as dash_sdk_bindings ; } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod eq { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod macros { use crate as dash_sdk_bindings ; } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_snapshot_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_snapshot_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_snapshot_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_current_contract_key_id_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_current_contract_key_id_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id) , purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod metadata { use crate as dash_sdk_bindings ; } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod fee { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_array_elements_for_document_type { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod status { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod credits_converter { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } } } pub mod state_transition_types { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer_map { use crate as dash_sdk_bindings ; } pub mod safe_integer { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod group { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; } } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod config { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod reason { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; pub mod outlives_delete { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod property { use crate as dash_sdk_bindings ; pub mod array { use crate as dash_sdk_bindings ; } pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod string_transformations { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod reference_where { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } pub mod expand_property_type_shorthands { use crate as dash_sdk_bindings ; } } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod index_level { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod state { use crate as dash_sdk_bindings ; pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } } pub mod basic { use crate as dash_sdk_bindings ; pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod contender { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod group { use crate as dash_sdk_bindings ; pub mod action_event { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod group_action { use crate as dash_sdk_bindings ; } } pub mod util { use crate as dash_sdk_bindings ; pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod canonical { use crate as dash_sdk_bindings ; } pub mod convert { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } } pub mod vec { use crate as dash_sdk_bindings ; } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transitions")] pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod witness { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } } pub mod contract_group { use crate as dash_sdk_bindings ; } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash_two_proofs { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_info { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod batch { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_elements { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith , Contains , ContainsAny } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith , drive_query_conditions_WhereOperator :: Contains => drive :: query :: conditions :: WhereOperator :: Contains , drive_query_conditions_WhereOperator :: ContainsAny => drive :: query :: conditions :: WhereOperator :: ContainsAny } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , drive :: query :: conditions :: WhereOperator :: Contains => drive_query_conditions_WhereOperator :: Contains , drive :: query :: conditions :: WhereOperator :: ContainsAny => drive_query_conditions_WhereOperator :: ContainsAny , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , drive_query_conditions_WhereOperator :: Contains => { } , drive_query_conditions_WhereOperator :: ContainsAny => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Contains_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Contains { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_ContainsAny_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: ContainsAny { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod operations { use crate as dash_sdk_bindings ; pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } } pub mod structs { use crate as dash_sdk_bindings ; pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash_two_proofs { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; pub mod index { use crate as dash_sdk_bindings ; pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } } pub mod queue { use crate as dash_sdk_bindings ; pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } } } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } pub mod rekey_unsigned_integer_index_values { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod genesis_core_height { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod backfill_historical_credit_pool_nullifiers { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } } } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod platform { use crate as dash_sdk_bindings ; pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod burn { use crate as dash_sdk_bindings ; } } pub mod builders { use crate as dash_sdk_bindings ; } } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } pub mod contest_fund { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod identities_contract_keys_query { use crate as dash_sdk_bindings ; } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod requests { use crate as dash_sdk_bindings ; } pub mod readers { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod contested_queries { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } } } pub mod sync { use crate as dash_sdk_bindings ; } pub mod core { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod dash_core_client { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file From 8e1c91b14eca66fba56b73de645d9ec1c3140bd2 Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Thu, 29 Oct 2026 10:03:50 -0700 Subject: [PATCH 16/21] Use unsigned local publication in SDK CI --- .github/workflows/build-and-verify-alignment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-verify-alignment.yml b/.github/workflows/build-and-verify-alignment.yml index 52b81a21..a0598ae1 100644 --- a/.github/workflows/build-and-verify-alignment.yml +++ b/.github/workflows/build-and-verify-alignment.yml @@ -101,7 +101,7 @@ jobs: run: ./gradlew cmakeClean cmakeConfigure cmakeBuild - name: Build with Gradle - run: ./gradlew build -x test -PskipDetekt + run: ./gradlew build -x test -PskipDetekt -PskipSigning - name: Verify 16KB Page Size Alignment run: ./scripts/verify-16kb-alignment.sh From e223d83ddc75b40fc5f654a8e14f2067e6712550 Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Thu, 29 Oct 2026 10:51:51 -0700 Subject: [PATCH 17/21] chore: set dash-sdk-bindings to 5.0.1 --- dash-sdk-bindings/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dash-sdk-bindings/Cargo.toml b/dash-sdk-bindings/Cargo.toml index 9930bdbd..64de71e8 100644 --- a/dash-sdk-bindings/Cargo.toml +++ b/dash-sdk-bindings/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dash-sdk-bindings" -version = "4.0.1" +version = "5.0.1" edition = "2021" [dependencies] From 68a7dcb97ae2f0640fb28ccfa11364927a86805f Mon Sep 17 00:00:00 2001 From: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com> Date: Thu, 29 Oct 2026 13:15:06 -0500 Subject: [PATCH 18/21] feat: add the DIP-13 rotation level to application encryption keys (#42) The application encryption path ends with a hardened 31-bit rotation level (dashpay/dips#191, used by the App Connect DIP, dashpay/dips#181): m/9'/coin'/5'/7'/0'/identityId'/contractId'/purpose'/rotation' with rotation 0' first. Without it the path becomes permanent with the first mainnet key and a compromised or retired key could never be replaced. platform-mobile: application_encryption_private_key_from_seed takes a rotation (below 2^31, an error otherwise) and appends it as a hardened level. The 8-level path without rotation stays available as application_encryption_legacy_private_key_from_seed, only to recognise keys that wallets registered on testnet/devnet before the rotation level existed. Tests pin the DIP vectors for both paths (abandon x11 about, mainnet). Bindings: Ferment output for dash-sdk-bindings and dash-sdk-android now has the new signature and the legacy function (regenerated with cargo build of dash-sdk-bindings; the Android copy carries the same two functions), plus a SWIG rename for applicationEncryptionLegacyPrivateKeyFromSeed. Kotlin: ApplicationKeyDerivation.encryption gains a required rotation parameter, so callers must choose it; new keys use 0. The pre-rotation path is the explicitly named legacyEncryptionWithoutRotation. Co-authored-by: Claude Opus 5.5 Co-authored-by: HashEngineering --- .../src/main/rust/src/fermented.rs | 2 +- dash-sdk-bindings/src/fermented.rs | 2 +- dash-sdk-java/src/main/swig/key_wallet.i | 2 + .../dpp/identity/ApplicationKeyDerivation.kt | 30 +- .../dpp/identity/AppConnectKeyTest.kt | 62 +++- platform-mobile/src/key_wallet.rs | 289 ++++++++++++++++-- 6 files changed, 341 insertions(+), 46 deletions(-) diff --git a/dash-sdk-android/src/main/rust/src/fermented.rs b/dash-sdk-android/src/main/rust/src/fermented.rs index b3e46353..e9ce779d 100644 --- a/dash-sdk-android/src/main/rust/src/fermented.rs +++ b/dash-sdk-android/src/main/rust/src/fermented.rs @@ -1 +1 @@ -# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod verify { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod unproved { use crate as dash_sdk_bindings ; } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod transport { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod connection_pool { use crate as dash_sdk_bindings ; } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod index { use crate as dash_sdk_bindings ; } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod eq { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod macros { use crate as dash_sdk_bindings ; } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_snapshot_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_snapshot_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_snapshot_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_current_contract_key_id_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_current_contract_key_id_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id) , purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod metadata { use crate as dash_sdk_bindings ; } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod fee { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_array_elements_for_document_type { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod status { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod credits_converter { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } } } pub mod state_transition_types { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer_map { use crate as dash_sdk_bindings ; } pub mod safe_integer { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod group { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; } } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod config { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod reason { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; pub mod outlives_delete { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod property { use crate as dash_sdk_bindings ; pub mod array { use crate as dash_sdk_bindings ; } pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod string_transformations { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod reference_where { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } pub mod expand_property_type_shorthands { use crate as dash_sdk_bindings ; } } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod index_level { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod state { use crate as dash_sdk_bindings ; pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } } pub mod basic { use crate as dash_sdk_bindings ; pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod contender { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod group { use crate as dash_sdk_bindings ; pub mod action_event { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod group_action { use crate as dash_sdk_bindings ; } } pub mod util { use crate as dash_sdk_bindings ; pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod canonical { use crate as dash_sdk_bindings ; } pub mod convert { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } } pub mod vec { use crate as dash_sdk_bindings ; } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transitions")] pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod witness { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } } pub mod contract_group { use crate as dash_sdk_bindings ; } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash_two_proofs { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_info { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod batch { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_elements { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith , Contains , ContainsAny } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith , drive_query_conditions_WhereOperator :: Contains => drive :: query :: conditions :: WhereOperator :: Contains , drive_query_conditions_WhereOperator :: ContainsAny => drive :: query :: conditions :: WhereOperator :: ContainsAny } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , drive :: query :: conditions :: WhereOperator :: Contains => drive_query_conditions_WhereOperator :: Contains , drive :: query :: conditions :: WhereOperator :: ContainsAny => drive_query_conditions_WhereOperator :: ContainsAny , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , drive_query_conditions_WhereOperator :: Contains => { } , drive_query_conditions_WhereOperator :: ContainsAny => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Contains_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Contains { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_ContainsAny_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: ContainsAny { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod operations { use crate as dash_sdk_bindings ; pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } } pub mod structs { use crate as dash_sdk_bindings ; pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash_two_proofs { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; pub mod index { use crate as dash_sdk_bindings ; pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } } pub mod queue { use crate as dash_sdk_bindings ; pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } } } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } pub mod rekey_unsigned_integer_index_values { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod genesis_core_height { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod backfill_historical_credit_pool_nullifiers { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } } } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod platform { use crate as dash_sdk_bindings ; pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod burn { use crate as dash_sdk_bindings ; } } pub mod builders { use crate as dash_sdk_bindings ; } } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } pub mod contest_fund { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod identities_contract_keys_query { use crate as dash_sdk_bindings ; } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod requests { use crate as dash_sdk_bindings ; } pub mod readers { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod contested_queries { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } } } pub mod sync { use crate as dash_sdk_bindings ; } pub mod core { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod dash_core_client { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file +# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod verify { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; } pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod unproved { use crate as dash_sdk_bindings ; } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod transport { use crate as dash_sdk_bindings ; } pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod connection_pool { use crate as dash_sdk_bindings ; } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod index { use crate as dash_sdk_bindings ; } pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod eq { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } } pub mod replace { use crate as dash_sdk_bindings ; } pub mod system_bytes { use crate as dash_sdk_bindings ; } pub mod macros { use crate as dash_sdk_bindings ; } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_snapshot_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_snapshot_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_snapshot_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_current_contract_key_id_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_current_contract_key_id_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id) , purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_legacy_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_legacy_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_legacy_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32 , rotation : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose , rotation) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } } pub mod dpp { use crate as dash_sdk_bindings ; pub mod metadata { use crate as dash_sdk_bindings ; } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod fee { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod document_patch { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod deserialize { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_array_elements_for_document_type { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod generate_document_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod bls { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod status { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_event { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } pub mod v0 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod credits_converter { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } pub mod new { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } } } pub mod state_transition_types { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer_map { use crate as dash_sdk_bindings ; } pub mod safe_integer { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod group { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; } } } pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod config { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod moderation { use crate as dash_sdk_bindings ; pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod reason { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } pub mod index { use crate as dash_sdk_bindings ; pub mod outlives_delete { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod property { use crate as dash_sdk_bindings ; pub mod array { use crate as dash_sdk_bindings ; } pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod string_transformations { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod reference_where { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } pub mod expand_property_type_shorthands { use crate as dash_sdk_bindings ; } } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod index_level { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } pub mod schema { use crate as dash_sdk_bindings ; } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod fee { use crate as dash_sdk_bindings ; } pub mod state { use crate as dash_sdk_bindings ; pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } } pub mod basic { use crate as dash_sdk_bindings ; pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } pub mod contender_structs { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod contender { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } pub mod group { use crate as dash_sdk_bindings ; pub mod action_event { use crate as dash_sdk_bindings ; } pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod group_action { use crate as dash_sdk_bindings ; } } pub mod util { use crate as dash_sdk_bindings ; pub mod json_schema { use crate as dash_sdk_bindings ; } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod json_path { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod canonical { use crate as dash_sdk_bindings ; } pub mod convert { use crate as dash_sdk_bindings ; } pub mod map { use crate as dash_sdk_bindings ; } } pub mod vec { use crate as dash_sdk_bindings ; } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod token_unshield { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } } pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transitions")] pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } pub mod witness { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } } pub mod contract_group { use crate as dash_sdk_bindings ; } } pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash_two_proofs { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_group_info { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod system_contracts { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod batch { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_elements { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith , Contains , ContainsAny } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith , drive_query_conditions_WhereOperator :: Contains => drive :: query :: conditions :: WhereOperator :: Contains , drive_query_conditions_WhereOperator :: ContainsAny => drive :: query :: conditions :: WhereOperator :: ContainsAny } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , drive :: query :: conditions :: WhereOperator :: Contains => drive_query_conditions_WhereOperator :: Contains , drive :: query :: conditions :: WhereOperator :: ContainsAny => drive_query_conditions_WhereOperator :: ContainsAny , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , drive_query_conditions_WhereOperator :: Contains => { } , drive_query_conditions_WhereOperator :: ContainsAny => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Contains_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Contains { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_ContainsAny_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: ContainsAny { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod op { use crate as dash_sdk_bindings ; } pub mod calculate_fee { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod create_pool_trees { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } } pub mod paths { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_groups { use crate as dash_sdk_bindings ; } pub mod add_group_action { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_group_action { use crate as dash_sdk_bindings ; } pub mod for_add_groups { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod update_identity_revision { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod operations { use crate as dash_sdk_bindings ; pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } } pub mod structs { use crate as dash_sdk_bindings ; pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash_two_proofs { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; pub mod index { use crate as dash_sdk_bindings ; pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } } pub mod queue { use crate as dash_sdk_bindings ; pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } } } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } pub mod apply_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } pub mod rekey_unsigned_integer_index_values { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } pub mod vote_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod protocol_version { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod genesis_core_height { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod backfill_historical_credit_pool_nullifiers { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } } } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod platform { use crate as dash_sdk_bindings ; pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod burn { use crate as dash_sdk_bindings ; } } pub mod builders { use crate as dash_sdk_bindings ; } } pub mod documents { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } pub mod contest_fund { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod transition { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod identities_contract_keys_query { use crate as dash_sdk_bindings ; } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod requests { use crate as dash_sdk_bindings ; } pub mod readers { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod contested_queries { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } } } pub mod sync { use crate as dash_sdk_bindings ; } pub mod core { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod dash_core_client { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; } } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file diff --git a/dash-sdk-bindings/src/fermented.rs b/dash-sdk-bindings/src/fermented.rs index 92505fa6..a3cc3fd5 100644 --- a/dash-sdk-bindings/src/fermented.rs +++ b/dash-sdk-bindings/src/fermented.rs @@ -1 +1 @@ -# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod drive { use crate as dash_sdk_bindings ; # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } pub mod queue { use crate as dash_sdk_bindings ; pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } } } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identity_by_non_unique_public_key_hash_two_proofs { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } pub mod rekey_unsigned_integer_index_values { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract { use crate as dash_sdk_bindings ; } pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod vote_storage_form { use crate as dash_sdk_bindings ; } pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_group_action { use crate as dash_sdk_bindings ; } pub mod add_new_groups { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_groups { use crate as dash_sdk_bindings ; } pub mod for_add_group_action { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod backfill_historical_credit_pool_nullifiers { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod unshield { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash_two_proofs { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod system_contracts { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod calculate_fee { use crate as dash_sdk_bindings ; } pub mod op { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith , Contains , ContainsAny } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith , drive_query_conditions_WhereOperator :: Contains => drive :: query :: conditions :: WhereOperator :: Contains , drive_query_conditions_WhereOperator :: ContainsAny => drive :: query :: conditions :: WhereOperator :: ContainsAny } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , drive :: query :: conditions :: WhereOperator :: Contains => drive_query_conditions_WhereOperator :: Contains , drive :: query :: conditions :: WhereOperator :: ContainsAny => drive_query_conditions_WhereOperator :: ContainsAny , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , drive_query_conditions_WhereOperator :: Contains => { } , drive_query_conditions_WhereOperator :: ContainsAny => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Contains_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Contains { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_ContainsAny_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: ContainsAny { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod replace { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod types { use crate as dash_sdk_bindings ; pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } } pub mod macros { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } pub mod system_bytes { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod index { use crate as dash_sdk_bindings ; } } pub mod dpp { use crate as dash_sdk_bindings ; # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } pub mod methods { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod config { use crate as dash_sdk_bindings ; pub mod moderation { use crate as dash_sdk_bindings ; pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } pub mod reason { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod expand_property_type_shorthands { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod property { use crate as dash_sdk_bindings ; pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod string_transformations { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod reference_where { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod array { use crate as dash_sdk_bindings ; } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod outlives_delete { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; } pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod encode { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod group_action { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod token_event { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod document { use crate as dash_sdk_bindings ; # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } pub mod document_patch { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } pub mod deserialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_array_elements_for_document_type { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod new { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } } pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } } pub mod util { use crate as dash_sdk_bindings ; pub mod json_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod map { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } pub mod convert { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod vec { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod json_path { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod bls { use crate as dash_sdk_bindings ; } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod fee { use crate as dash_sdk_bindings ; } pub mod state { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod basic { use crate as dash_sdk_bindings ; pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } } } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer { use crate as dash_sdk_bindings ; } pub mod safe_integer_map { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } } pub mod fee { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod platform { use crate as dash_sdk_bindings ; pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } pub mod contested_queries { use crate as dash_sdk_bindings ; } } pub mod identities_contract_keys_query { use crate as dash_sdk_bindings ; } pub mod documents { use crate as dash_sdk_bindings ; pub mod contest_fund { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod requests { use crate as dash_sdk_bindings ; } pub mod readers { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod burn { use crate as dash_sdk_bindings ; } } pub mod builders { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod transition { use crate as dash_sdk_bindings ; } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod sync { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod core { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod dash_core_client { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_current_contract_key_id_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_current_contract_key_id_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id) , purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_snapshot_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_snapshot_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_snapshot_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod verify { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } } pub mod unproved { use crate as dash_sdk_bindings ; } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file +# [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod types { pub mod drive { use crate as dash_sdk_bindings ; # [cfg (all (feature = "server" , any (test , feature = "structure")))] pub mod structure { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod remove_from_system_credits { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_from_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod calculate_total_credits_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_system_credits { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod identity { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod withdrawals { use crate as dash_sdk_bindings ; pub mod transaction { use crate as dash_sdk_bindings ; pub mod index { use crate as dash_sdk_bindings ; pub mod fetch_next_withdrawal_transaction_index { use crate as dash_sdk_bindings ; } pub mod add_update_next_withdrawal_transaction_index_operation { use crate as dash_sdk_bindings ; } } pub mod queue { use crate as dash_sdk_bindings ; pub mod remove_broadcasted_withdrawal_transactions_after_completion { use crate as dash_sdk_bindings ; } pub mod dequeue_untied_withdrawal_transactions { use crate as dash_sdk_bindings ; } pub mod move_broadcasted_withdrawal_transactions_back_to_queue_operations { use crate as dash_sdk_bindings ; } pub mod add_enqueue_untied_withdrawal_transaction_operations { use crate as dash_sdk_bindings ; } } } pub mod calculate_current_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod record_total_credits_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_last_recorded_core_credit_pool_height { use crate as dash_sdk_bindings ; } pub mod fetch_total_credits_in_platform_a_day_ago { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_core_credit_pool_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod record_credit_inflow { use crate as dash_sdk_bindings ; } pub mod fetch_in_flight_withdrawal_amount { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod find_withdrawal_documents_by_status_and_transaction_indices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_oldest_withdrawal_documents_by_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod record_core_credit_pool_blocks { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod key { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod budget { use crate as dash_sdk_bindings ; pub mod fetch_identity_key_remaining_budget { use crate as dash_sdk_bindings ; } pub mod deduct_from_identity_key_budget { use crate as dash_sdk_bindings ; } pub mod prove_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_to_identity_key_budget { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_key_budgets { use crate as dash_sdk_bindings ; } pub mod insert_identity_key_budget { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_identity_keys { use crate as dash_sdk_bindings ; } pub mod prove_identities_all_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod create_new_identity_key_query_trees { use crate as dash_sdk_bindings ; } pub mod insert_new_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_new_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_key_to_storage { use crate as dash_sdk_bindings ; } pub mod create_key_tree_with_keys { use crate as dash_sdk_bindings ; } pub mod insert_key_searchable_references { use crate as dash_sdk_bindings ; } pub mod replace_key_in_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_all_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identities_all_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_all_current_identity_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_key_hash_identity_reference { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_insert_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_insert_non_unique_public_key_hash_reference { use crate as dash_sdk_bindings ; } } pub mod insert_reference_to_non_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_non_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } pub mod insert_reference_to_unique_key { use crate as dash_sdk_bindings ; } pub mod insert_unique_public_key_hash_reference_to_identity { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , any (feature = "server" , feature = "verify")))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_update_revision { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group { use crate as dash_sdk_bindings ; } pub mod for_keys_for_identity_id { use crate as dash_sdk_bindings ; } pub mod for_update_nonce { use crate as dash_sdk_bindings ; } pub mod for_root_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info { use crate as dash_sdk_bindings ; } pub mod for_authentication_keys_security_level_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_key_purpose { use crate as dash_sdk_bindings ; } pub mod for_identity_contract_info_group_keys { use crate as dash_sdk_bindings ; } pub mod for_negative_credit { use crate as dash_sdk_bindings ; } pub mod for_purpose_in_key_reference_tree { use crate as dash_sdk_bindings ; } pub mod for_balances { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod structs { use crate as dash_sdk_bindings ; pub mod add_to_previous_balance_outcome { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_outcome { use crate as dash_sdk_bindings ; } } pub mod operations { use crate as dash_sdk_bindings ; pub mod initialize_negative_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_negative_credit_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod insert_identity_balance_operation { use crate as dash_sdk_bindings ; } pub mod update_identity_revision_operation { use crate as dash_sdk_bindings ; } pub mod initialize_identity_nonce_operation { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; pub mod remove_from_identity_balance { use crate as dash_sdk_bindings ; } pub mod merge_identity_nonce { use crate as dash_sdk_bindings ; } pub mod add_new_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_new_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod apply_balance_change_from_fee_to_identity { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod re_enable_identity_keys { use crate as dash_sdk_bindings ; } pub mod disable_identity_keys { use crate as dash_sdk_bindings ; } pub mod refresh_identity_key_reference_operations { use crate as dash_sdk_bindings ; } pub mod add_new_non_unique_keys_to_identity { use crate as dash_sdk_bindings ; } pub mod add_to_previous_balance { use crate as dash_sdk_bindings ; } pub mod update_identity_key_limits { use crate as dash_sdk_bindings ; } pub mod add_to_identity_balance { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod update_identity_revision { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod merge_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod keys { use crate as dash_sdk_bindings ; pub mod refresh_potential_contract_info_key_references { use crate as dash_sdk_bindings ; } pub mod add_potential_contract_info_for_contract_bounded_key { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fetch { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod partial_identity { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance_with_keys { use crate as dash_sdk_bindings ; } pub mod fetch_identity_with_balance { use crate as dash_sdk_bindings ; } pub mod fetch_identity_revision_with_keys { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_with_keys_and_revision { use crate as dash_sdk_bindings ; } pub mod fetch_identity_keys { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod balance { use crate as dash_sdk_bindings ; pub mod fetch_identity_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_identity_balance_include_debt { use crate as dash_sdk_bindings ; } pub mod fetch_identity_negative_balance { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod full_identity { use crate as dash_sdk_bindings ; pub mod fetch_full_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod nonce { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod prove_identity_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_identity_nonce { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_full_identity_by_non_unique_public_key_hash_two_proofs { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_full_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_identities_contract_keys { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod queries { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_by_public_key_hashes { use crate as dash_sdk_bindings ; pub mod fetch_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_non_unique_public_key_hash_already_for_identity { use crate as dash_sdk_bindings ; } pub mod fetch_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod fetch_full_identities_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod has_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod has_any_of_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod fetch_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod revision { use crate as dash_sdk_bindings ; pub mod fetch_identity_revision { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod contract_keys { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_new_identity { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod contract { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod add_version_items_to_all_contracts { use crate as dash_sdk_bindings ; } pub mod rekey_unsigned_integer_index_values { use crate as dash_sdk_bindings ; } } pub mod moderation { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_entries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_team_action_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_moderation_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_document_removal_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_document_removal { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_team_action_signature { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_actions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_ban { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_team_action_signers { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_warning { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_moderation_action_count { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_contract_warnings { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_document_removals { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_moderation_status { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_contract_suspension { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_contract_insertion { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod version_item { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contracts { use crate as dash_sdk_bindings ; } pub mod prove_contracts_by_range { use crate as dash_sdk_bindings ; } pub mod prove_contracts_versions { use crate as dash_sdk_bindings ; } pub mod prove_contract_history { use crate as dash_sdk_bindings ; } pub mod prove_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_version { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_contract_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_cached_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contracts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_contract_with_fetch_info { use crate as dash_sdk_bindings ; } pub mod fetch_contract_with_history { use crate as dash_sdk_bindings ; } pub mod fetch_contract { use crate as dash_sdk_bindings ; } pub mod get_system_or_user_contract_with_fee { use crate as dash_sdk_bindings ; } pub mod get_contracts_with_fetch_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_contract_to_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod add_new_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod insert_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; pub mod ranked_index_e2e_tests { use crate as dash_sdk_bindings ; } } } } pub mod add_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; pub mod update_description { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_keywords { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod update_contract { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod refresh_cache { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod apply { use crate as dash_sdk_bindings ; pub mod apply_contract { use crate as dash_sdk_bindings ; } pub mod apply_contract_with_serialization { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod fee_pots { use crate as dash_sdk_bindings ; pub mod types { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_action_fee_multiplier { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_to_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_contract_last_fee_claim { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_contract_fee_pot_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_contract_fee_pot { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_contract_fee_pots { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_contract_fee_pot { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod add_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod deduct_from_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_prefunded_specialized_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod empty_prefunded_specialized_balance_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod single_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod initialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod genesis_core_height { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod platform_state { use crate as dash_sdk_bindings ; pub mod store_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod delete_platform_state_entry { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_recent_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_bytes { use crate as dash_sdk_bindings ; } pub mod store_platform_state_entry_bytes { use crate as dash_sdk_bindings ; } pub mod fetch_platform_state_entries_bytes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod shared { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod shared_estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract_document_type_excluded { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_levels_up_to_contract { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_contested_document_tree_levels_up_to_contract { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod votes { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod vote_poll { use crate as dash_sdk_bindings ; pub mod add_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; } } pub mod register_identity_vote { use crate as dash_sdk_bindings ; } pub mod contested_resource { use crate as dash_sdk_bindings ; pub mod insert_stored_info_for_contested_resource_vote_poll { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod individual_vote { use crate as dash_sdk_bindings ; pub mod register_contested_resource_identity_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod storage_form { use crate as dash_sdk_bindings ; pub mod vote_storage_form { use crate as dash_sdk_bindings ; } pub mod contested_document_resource_storage_form { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod setup { use crate as dash_sdk_bindings ; pub mod setup_initial_vote_tree_main_structure { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod resolved { use crate as dash_sdk_bindings ; pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; } } pub mod votes { use crate as dash_sdk_bindings ; pub mod resolved_resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_identity_contested_resource_vote { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_contender_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_identities_voting_for_contenders { use crate as dash_sdk_bindings ; } pub mod fetch_contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod cleanup { use crate as dash_sdk_bindings ; pub mod remove_contested_resource_vote_poll_votes_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_end_date_query_operations { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_top_level_index_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_documents_operations { use crate as dash_sdk_bindings ; } pub mod remove_specific_votes_given_by_identity { use crate as dash_sdk_bindings ; } pub mod remove_all_votes_given_by_identities { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_contested_resource_vote_poll_contenders_operations { use crate as dash_sdk_bindings ; } pub mod remove_contested_resource_vote_poll_info_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod for_total_system_credits_update { use crate as dash_sdk_bindings ; } } pub mod fetch_elements { use crate as dash_sdk_bindings ; } pub mod protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod genesis_time { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_adding_asset_lock { use crate as dash_sdk_bindings ; } } pub mod fetch_asset_lock_outpoint_info { use crate as dash_sdk_bindings ; } pub mod add_asset_lock_outpoint_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod group { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_signers_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_is_closed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_has_signer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_action_id_info_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_active_action_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_action_signers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_group_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_group_action { use crate as dash_sdk_bindings ; } pub mod add_new_groups { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_add_groups { use crate as dash_sdk_bindings ; } pub mod for_add_group_action { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_groups { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_info { use crate as dash_sdk_bindings ; } pub mod prove_contract_group_members { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_contract_group_members { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod fetch_contract_group_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_insert_contract_group { use crate as dash_sdk_bindings ; } pub mod for_insert_contract_group_memberships { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert { use crate as dash_sdk_bindings ; pub mod insert_contract_group_memberships { use crate as dash_sdk_bindings ; } pub mod insert_contract_group { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod document { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod update { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod update_document_for_contract_id { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_document_for_contract { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_update_multiple_documents_operations { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod update_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod update_document_for_contract_operations { use crate as dash_sdk_bindings ; } } pub mod update_document_with_serialization_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod primary_key_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert { use crate as dash_sdk_bindings ; pub mod add_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_history_operations { use crate as dash_sdk_bindings ; } pub mod add_document { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod add_document_to_primary_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_preallocated_index_tree_operations { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod estimation_costs { use crate as dash_sdk_bindings ; pub mod stateless_delete_of_non_tree_for_costs { use crate as dash_sdk_bindings ; } pub mod estimated_sum_trees_for_value_tree_type { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_estimation_costs_for_add_document_to_primary_storage { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_level_tree_types { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod cost { use crate as dash_sdk_bindings ; pub mod grove_costs { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod get_fetch { use crate as dash_sdk_bindings ; pub mod fetch_document_history { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_property_constraint_aggregate { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod expiration { use crate as dash_sdk_bindings ; pub mod pricing { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_document_expiration_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod insert_document_ttl_trees { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_expired_documents { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_estimation_costs_for_document_expiration { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_document_expiration_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod query { use crate as dash_sdk_bindings ; pub mod query_documents { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_chained_documents { use crate as dash_sdk_bindings ; } pub mod query_contested_documents_vote_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_contested_documents_storage { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_documents_with_flags { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod query_composite_documents { use crate as dash_sdk_bindings ; } pub mod fetch_document_history_query { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod derived_index_values { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_document_history { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod index_only_entry_payload { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod delete { use crate as dash_sdk_bindings ; pub mod delete_document_for_contract_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod remove_document_from_primary_storage { use crate as dash_sdk_bindings ; } pub mod remove_indices_for_top_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id_with_named_type_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_id { use crate as dash_sdk_bindings ; } pub mod internal { use crate as dash_sdk_bindings ; pub mod add_estimation_costs_for_remove_document_to_primary_storage { use crate as dash_sdk_bindings ; } } pub mod remove_indices_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod delete_index_only_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod remove_reference_for_index_level_for_contract_operations { use crate as dash_sdk_bindings ; } pub mod delete_document_for_contract { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod index_uniqueness { use crate as dash_sdk_bindings ; pub mod internal { use crate as dash_sdk_bindings ; pub mod validate_uniqueness_of_data { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod validate_document_transfer_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_create_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_purchase_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_update_price_transition_action_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_moderated_document_uniqueness { use crate as dash_sdk_bindings ; } pub mod validate_document_replace_transition_action_uniqueness { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ranked_index_tree_type { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod layout { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "fixtures-and-mocks"))] pub mod insert_contested { use crate as dash_sdk_bindings ; pub mod add_contested_document_for_contract_apply_and_add_to_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_vote_subtrees_for_non_identities_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_reference_and_vote_subtree_to_document_operations { use crate as dash_sdk_bindings ; } pub mod add_contested_document_to_primary_storage { use crate as dash_sdk_bindings ; } pub mod add_contested_indices_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod fetch_charter_election_windows { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_contested_document_for_contract { use crate as dash_sdk_bindings ; } pub mod add_contested_document { use crate as dash_sdk_bindings ; } pub mod add_contested_document_for_contract_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod saved_block_transactions { use crate as dash_sdk_bindings ; pub mod compact_address_balances { use crate as dash_sdk_bindings ; } pub mod cleanup_expired_address_balances { use crate as dash_sdk_bindings ; } pub mod fetch_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod store_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_compacted_address_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod shielded { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod read_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_note { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prune_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod record_anchor_if_changed { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod migration { use crate as dash_sdk_bindings ; pub mod backfill_historical_credit_pool_nullifiers { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod update_total_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod has_nullifier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod insert_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod protocol_upgrade { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_versions_with_counter { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod remove_validators_proposed_app_versions { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod update_validator_proposed_app_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_proved_validator_version_votes { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod clear_version_information { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_validator_version_votes { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod credit_pools { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod pending_epoch_refunds { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod fetch_and_add_pending_epoch_refunds_to_collection { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_pending_epoch_refunds { use crate as dash_sdk_bindings ; } pub mod add_delete_pending_epoch_refunds_except_specified { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod operations { use crate as dash_sdk_bindings ; pub mod add_update_pending_epoch_refunds_operations { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod unpaid_epoch { use crate as dash_sdk_bindings ; pub mod get_unpaid_epoch_index { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod storage_fee_distribution_pool { use crate as dash_sdk_bindings ; pub mod get_storage_fees_from_distribution_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod fetch_lifetime_storage_fee_pools { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod epochs { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod get_epochs_protocol_versions { use crate as dash_sdk_bindings ; } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod credit_distribution_pools { use crate as dash_sdk_bindings ; pub mod get_epoch_storage_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_processing_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epoch_total_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_storage_credits_for_distribution_for_epochs_in_range { use crate as dash_sdk_bindings ; } pub mod add_epoch_processing_credits_for_distribution_operation { use crate as dash_sdk_bindings ; } pub mod get_epoch_fee_multiplier { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_epoch_final_info_operation { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod has_epoch_tree_exists { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_epoch_protocol_version { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod operations_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod get_finalized_epoch_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_epochs_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_time { use crate as dash_sdk_bindings ; pub mod get_epoch_start_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod proposers { use crate as dash_sdk_bindings ; pub mod prove_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_epochs_proposer_block_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod is_epochs_proposers_tree_empty { use crate as dash_sdk_bindings ; } pub mod fetch_epoch_proposers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod prove_finalized_epoch_infos { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod start_block { use crate as dash_sdk_bindings ; pub mod get_epoch_start_block_height { use crate as dash_sdk_bindings ; } pub mod get_first_epoch_start_block_info_between_epochs { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod get_epoch_start_block_core_height { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_address_balance_update { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod set_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_balance_to_address { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod fetch_balance_and_nonce { use crate as dash_sdk_bindings ; } pub mod fetch_balances_with_nonces { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_address_funds_trunk_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balance_and_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_balances_with_nonces { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_address_funds_branch_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod remove_balance_from_address { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod tokens { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod freeze { use crate as dash_sdk_bindings ; } pub mod balance { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod remove_from_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_to_previous_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod update { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod direct_purchase { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_tokens_direct_purchase_price { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod set_direct_purchase_price { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod calculate_total_tokens_balance { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod shielded_pool { use crate as dash_sdk_bindings ; pub mod unshield { use crate as dash_sdk_bindings ; } pub mod burn_from_pool { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod create_pool_trees { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod unfreeze { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod burn { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod mint_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod prove_token_contract_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_token_contract_info { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod apply_status { use crate as dash_sdk_bindings ; } pub mod paths { use crate as dash_sdk_bindings ; } pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod mark_once_per_identity_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod evonode_participation_rewards { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_once_per_identity_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_perpetual_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod fetch { use crate as dash_sdk_bindings ; pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distribution_last_paid_time_ms { use crate as dash_sdk_bindings ; } pub mod once_per_identity_distribution_claim { use crate as dash_sdk_bindings ; } pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod pre_programmed_distributions { use crate as dash_sdk_bindings ; } pub mod perpetual_distribution_last_paid_moment { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod add_perpetual_distribution { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod mark_pre_programmed_release_as_distributed { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod fetch_identity_token_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod queries { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_identities_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fetch_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove_identity_token_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod estimated_costs { use crate as dash_sdk_bindings ; pub mod for_root_token_ms_interval_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_contract_infos { use crate as dash_sdk_bindings ; } pub mod for_token_balances { use crate as dash_sdk_bindings ; } pub mod for_token_pre_programmed_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_perpetual_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_identity_infos { use crate as dash_sdk_bindings ; } pub mod for_token_once_per_identity_distribution { use crate as dash_sdk_bindings ; } pub mod for_token_status_infos { use crate as dash_sdk_bindings ; } pub mod for_token_total_supply { use crate as dash_sdk_bindings ; } pub mod for_token_direct_selling_prices { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod transfer { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod add_transaction_history_operations { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod system { use crate as dash_sdk_bindings ; pub mod fetch_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod fetch_token_total_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod create_token_trees { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod add_to_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod prove_token_total_supply_and_aggregated_identity_balances { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod remove_from_token_total_supply { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod mint { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod verify { use crate as dash_sdk_bindings ; pub mod state_transition { use crate as dash_sdk_bindings ; pub mod state_transition_execution_path_queries { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } } pub mod verify_state_transition_was_executed_with_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod system { use crate as dash_sdk_bindings ; pub mod verify_upgrade_vote_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_upgrade_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_total_credits_in_system { use crate as dash_sdk_bindings ; } pub mod verify_epoch_proposers { use crate as dash_sdk_bindings ; } pub mod verify_elements { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_finalized_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_epoch_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod verify_contract_history { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract_return_serialization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_by_range { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contracts_versions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contract { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod grovedb_proof_envelope { use crate as dash_sdk_bindings ; } pub mod document_sum { use crate as dash_sdk_bindings ; pub mod verify_distinct_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_sum_tree_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_aggregate_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_and_sum_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_sum_tree_proof { use crate as dash_sdk_bindings ; } } pub mod document_having { use crate as dash_sdk_bindings ; pub mod verify_having_range_proof { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod verify_compacted_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_branch_query { use crate as dash_sdk_bindings ; } pub mod verify_addresses_infos { use crate as dash_sdk_bindings ; } pub mod verify_address_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_address_funds_trunk_query { use crate as dash_sdk_bindings ; } pub mod verify_recent_address_balance_changes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod verify_shielded_notes_count { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_pool_state { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_nullifiers { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_anchors { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_shielded_encrypted_notes { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_most_recent_shielded_anchor { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod voting { use crate as dash_sdk_bindings ; pub mod verify_vote_polls_end_date_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_votes_given_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_specialized_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_contests_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_vote_state_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_vote_poll_votes_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_count { use crate as dash_sdk_bindings ; pub mod verify_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_carrier_aggregate_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_point_lookup_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_distinct_count_proof { use crate as dash_sdk_bindings ; } pub mod verify_primary_key_count_tree_proof { use crate as dash_sdk_bindings ; } } pub mod contract_moderation { use crate as dash_sdk_bindings ; pub mod verify_contract_team_actions { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_action_counts { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_entries { use crate as dash_sdk_bindings ; } pub mod verify_contract_document_removals { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signature { use crate as dash_sdk_bindings ; } pub mod verify_contract_team_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_contract_fee_pots { use crate as dash_sdk_bindings ; } pub mod verify_contract_moderation_status { use crate as dash_sdk_bindings ; } } pub mod composite_document { use crate as dash_sdk_bindings ; pub mod verify_composite_documents_proof { use crate as dash_sdk_bindings ; } } pub mod document_ranked { use crate as dash_sdk_bindings ; pub mod verify_ranked_top_k_proof { use crate as dash_sdk_bindings ; } } pub mod single_document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod chained_document { use crate as dash_sdk_bindings ; pub mod verify_chained_documents_proof { use crate as dash_sdk_bindings ; } } pub mod group { use crate as dash_sdk_bindings ; pub mod verify_action_signers_total_power { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_active_action_infos { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_action_signers { use crate as dash_sdk_bindings ; } pub mod verify_group_info { use crate as dash_sdk_bindings ; } pub mod verify_group_infos_in_contract { use crate as dash_sdk_bindings ; } } pub mod document { use crate as dash_sdk_bindings ; pub mod verify_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_start_at_document_in_proof { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_document_history { use crate as dash_sdk_bindings ; } pub mod verify_proof_keep_serialized { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod verify_token_pre_programmed_distributions { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_perpetual_distribution_last_paid_time { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_contract_info { use crate as dash_sdk_bindings ; } pub mod verify_token_total_supply_and_aggregated_identity_balance { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_info_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_token_status { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balance_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_infos_for_identity_ids { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_balances_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_token_direct_selling_prices { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_direct_selling_price { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_token_statuses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod identity { use crate as dash_sdk_bindings ; pub mod verify_full_identity_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_full_identity_by_non_unique_public_key_hash_two_proofs { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_and_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balances_for_identity_ids { use crate as dash_sdk_bindings ; } pub mod verify_identity_contract_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_balance_revision_and_addresses_from_inputs { use crate as dash_sdk_bindings ; } pub mod verify_identity_balance_for_identity_id { use crate as dash_sdk_bindings ; } pub mod verify_full_identities_by_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_remaining_budgets { use crate as dash_sdk_bindings ; } pub mod verify_identity_keys_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_revision_for_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_identity_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_full_identity_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identity_id_by_unique_public_key_hash { use crate as dash_sdk_bindings ; } pub mod verify_identity_ids_by_unique_public_key_hashes { use crate as dash_sdk_bindings ; } pub mod verify_identity_nonce { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod verify_identities_contract_keys { use crate as dash_sdk_bindings ; } pub mod verify_identity_id_by_non_unique_public_key_hash { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract_groups { use crate as dash_sdk_bindings ; pub mod verify_contract_group_members { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_memberships_for_contract { use crate as dash_sdk_bindings ; } pub mod verify_contract_group_info { use crate as dash_sdk_bindings ; } } pub mod bounded_decode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod prove { use crate as dash_sdk_bindings ; pub mod prove_elements { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod prove_state_transition { use crate as dash_sdk_bindings ; } pub mod prove_multiple_state_transition_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (any (feature = "server" , feature = "verify" , feature = "fixtures-and-mocks"))] pub mod util { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server" , feature = "fixtures-and-mocks"))] pub mod test_helpers { use crate as dash_sdk_bindings ; # [cfg (any (test , feature = "server"))] pub mod setup { use crate as dash_sdk_bindings ; } # [cfg (any (test , feature = "fixtures-and-mocks"))] pub mod test_utils { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod batch { use crate as dash_sdk_bindings ; pub mod drive_op_batch { use crate as dash_sdk_bindings ; pub mod token { use crate as dash_sdk_bindings ; } pub mod drive_methods { use crate as dash_sdk_bindings ; pub mod apply_drive_operations { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod convert_drive_operations_to_grove_operations { use crate as dash_sdk_bindings ; } } } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod common { use crate as dash_sdk_bindings ; pub mod encode { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod grove_operations { use crate as dash_sdk_bindings ; pub mod batch_insert { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_operation { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists_return_existing_element { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_batch_operations_costs { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_up_tree_while_empty { use crate as dash_sdk_bindings ; } pub mod grove_commitment_tree_count { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists_check_existing_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_insert { use crate as dash_sdk_bindings ; } pub mod grove_get_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod pending_grove_operations { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod grove_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_sum_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_branch_chunk_query { use crate as dash_sdk_bindings ; } pub mod grove_get_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_optional_sum_tree_total_value { use crate as dash_sdk_bindings ; } pub mod grove_get_big_sum_tree_total_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query_with_optional { use crate as dash_sdk_bindings ; } pub mod grove_get { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_apply_partial_batch_with_add_costs { use crate as dash_sdk_bindings ; } pub mod grove_delete { use crate as dash_sdk_bindings ; } pub mod grove_get_proved_path_query { use crate as dash_sdk_bindings ; } pub mod grove_get_raw { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_path_query { use crate as dash_sdk_bindings ; } pub mod batch_move { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_count_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_with_conditional { use crate as dash_sdk_bindings ; } pub mod batch_refresh_reference { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_keep_item_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_delete_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_raw_value_u64_from_encoded_var_vec { use crate as dash_sdk_bindings ; } pub mod batch_insert_if_changed_value { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_clear { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_empty_provable_count_provable_sum_indexed_tree { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional { use crate as dash_sdk_bindings ; } pub mod grove_get_raw_optional_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_insert_if_not_exists { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_results { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_provable_count_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_remove_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_sum_item_or_add_to_if_already_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_insert_item_with_sum_item_if_not_exists { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_path_query_serialized_or_sum_results { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_move_items_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_path_query_v1 { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod batch_replace { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_has_raw { use crate as dash_sdk_bindings ; } pub mod batch_insert_empty_sum_tree { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod grove_get_proved_trunk_chunk_query { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod operations { use crate as dash_sdk_bindings ; pub mod apply_partial_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod apply_batch_grovedb_operations { use crate as dash_sdk_bindings ; } pub mod commit_transaction { use crate as dash_sdk_bindings ; } pub mod drop_cache { use crate as dash_sdk_bindings ; } pub mod rollback_transaction { use crate as dash_sdk_bindings ; } pub mod apply_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_partial_batch_low_level_drive_operations { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod object_size_info { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod key_value_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_key_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod document_info { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contract_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_element_info { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod path_key_info { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "server")] pub mod state_transition_action { use crate as dash_sdk_bindings ; pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_nonce_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod partially_use_asset_lock_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod bump_address_input_nonces_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod transformer { use crate as dash_sdk_bindings ; } } pub mod bump_identity_data_contract_nonce_action { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } } pub mod action_convert_to_operations { use crate as dash_sdk_bindings ; pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; } pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } } pub mod system { use crate as dash_sdk_bindings ; pub mod bump_identity_data_contract_nonce { use crate as dash_sdk_bindings ; } pub mod partially_use_asset_lock { use crate as dash_sdk_bindings ; } pub mod bump_identity_nonce { use crate as dash_sdk_bindings ; } pub mod bump_address_input_nonces { use crate as dash_sdk_bindings ; } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; } pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; } } pub mod batch { use crate as dash_sdk_bindings ; pub mod document { use crate as dash_sdk_bindings ; } pub mod batch_transition { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_transition { use crate as dash_sdk_bindings ; } pub mod identity_update_transition { use crate as dash_sdk_bindings ; } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } pub mod shield_transition { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; } pub mod unshield_transition { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod unshield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_purchase_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod batch { use crate as dash_sdk_bindings ; pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod document_transition { use crate as dash_sdk_bindings ; pub mod document_create_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_replace_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_update_price_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_delete_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_transition { use crate as dash_sdk_bindings ; pub mod token_unfreeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_freeze_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_claim_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_destroy_frozen_funds_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_direct_purchase_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod token_emergency_action_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_config_update_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_mint_to_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_set_price_for_direct_purchase_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_base_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transfer_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod token_unshield_transition_action { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity { use crate as dash_sdk_bindings ; pub mod masternode_vote { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } } } pub mod identity_topup { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod transformer { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_credit_withdrawal { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod address_funding_from_asset_lock { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod contract_fee_claim { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod data_contract_create { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod data_contract_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "server")] pub mod cache { use crate as dash_sdk_bindings ; pub mod protocol_version { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod system_contracts { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod fees { use crate as dash_sdk_bindings ; pub mod calculate_fee { use crate as dash_sdk_bindings ; } pub mod op { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod error { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod query { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_count_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod where_clause_grouping { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_vote_state_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_end_date_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_poll_contestant_votes_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_ranked_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod branches { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod vote_polls_by_document_type_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod filter { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod conditions { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`WhereClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_conditions_WhereClause { pub field : * mut std :: os :: raw :: c_char , pub operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , pub value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereClause) -> drive :: query :: conditions :: WhereClause { let ffi_ref = & * ffi ; drive :: query :: conditions :: WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (ffi_ref . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . value) } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause > for drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereClause) -> * const drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , operator : < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj . operator) , value : < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . value) }) } } impl Drop for drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ferment :: unbox_any (ffi_ref . operator) ; ferment :: unbox_any (ffi_ref . value) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_ctor < > (field : * mut std :: os :: raw :: c_char , operator : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator , value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_query_conditions_WhereClause { ferment :: boxed (drive_query_conditions_WhereClause { field , operator , value }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_destroy < > (ffi : * mut drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_get_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_field < > (obj : * const drive_query_conditions_WhereClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_operator < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { (* obj) . operator } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereClause_set_value < > (obj : * const drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . value } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`WhereOperator`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum drive_query_conditions_WhereOperator { Equal , GreaterThan , GreaterThanOrEquals , LessThan , LessThanOrEquals , Between , BetweenExcludeBounds , BetweenExcludeLeft , BetweenExcludeRight , In , StartsWith , Contains , ContainsAny } impl ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_from_const (ffi : * const drive_query_conditions_WhereOperator) -> drive :: query :: conditions :: WhereOperator { let ffi_ref = & * ffi ; match ffi_ref { drive_query_conditions_WhereOperator :: Equal => drive :: query :: conditions :: WhereOperator :: Equal , drive_query_conditions_WhereOperator :: GreaterThan => drive :: query :: conditions :: WhereOperator :: GreaterThan , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals , drive_query_conditions_WhereOperator :: LessThan => drive :: query :: conditions :: WhereOperator :: LessThan , drive_query_conditions_WhereOperator :: LessThanOrEquals => drive :: query :: conditions :: WhereOperator :: LessThanOrEquals , drive_query_conditions_WhereOperator :: Between => drive :: query :: conditions :: WhereOperator :: Between , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft , drive_query_conditions_WhereOperator :: BetweenExcludeRight => drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight , drive_query_conditions_WhereOperator :: In => drive :: query :: conditions :: WhereOperator :: In , drive_query_conditions_WhereOperator :: StartsWith => drive :: query :: conditions :: WhereOperator :: StartsWith , drive_query_conditions_WhereOperator :: Contains => drive :: query :: conditions :: WhereOperator :: Contains , drive_query_conditions_WhereOperator :: ContainsAny => drive :: query :: conditions :: WhereOperator :: ContainsAny } } } impl ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator > for drive_query_conditions_WhereOperator { unsafe fn ffi_to_const (obj : drive :: query :: conditions :: WhereOperator) -> * const drive_query_conditions_WhereOperator { ferment :: boxed (match obj { drive :: query :: conditions :: WhereOperator :: Equal => drive_query_conditions_WhereOperator :: Equal , drive :: query :: conditions :: WhereOperator :: GreaterThan => drive_query_conditions_WhereOperator :: GreaterThan , drive :: query :: conditions :: WhereOperator :: GreaterThanOrEquals => drive_query_conditions_WhereOperator :: GreaterThanOrEquals , drive :: query :: conditions :: WhereOperator :: LessThan => drive_query_conditions_WhereOperator :: LessThan , drive :: query :: conditions :: WhereOperator :: LessThanOrEquals => drive_query_conditions_WhereOperator :: LessThanOrEquals , drive :: query :: conditions :: WhereOperator :: Between => drive_query_conditions_WhereOperator :: Between , drive :: query :: conditions :: WhereOperator :: BetweenExcludeBounds => drive_query_conditions_WhereOperator :: BetweenExcludeBounds , drive :: query :: conditions :: WhereOperator :: BetweenExcludeLeft => drive_query_conditions_WhereOperator :: BetweenExcludeLeft , drive :: query :: conditions :: WhereOperator :: BetweenExcludeRight => drive_query_conditions_WhereOperator :: BetweenExcludeRight , drive :: query :: conditions :: WhereOperator :: In => drive_query_conditions_WhereOperator :: In , drive :: query :: conditions :: WhereOperator :: StartsWith => drive_query_conditions_WhereOperator :: StartsWith , drive :: query :: conditions :: WhereOperator :: Contains => drive_query_conditions_WhereOperator :: Contains , drive :: query :: conditions :: WhereOperator :: ContainsAny => drive_query_conditions_WhereOperator :: ContainsAny , _ => unreachable ! ("This is unreachable") }) } } impl Drop for drive_query_conditions_WhereOperator { fn drop (& mut self) { unsafe { match self { drive_query_conditions_WhereOperator :: Equal => { } , drive_query_conditions_WhereOperator :: GreaterThan => { } , drive_query_conditions_WhereOperator :: GreaterThanOrEquals => { } , drive_query_conditions_WhereOperator :: LessThan => { } , drive_query_conditions_WhereOperator :: LessThanOrEquals => { } , drive_query_conditions_WhereOperator :: Between => { } , drive_query_conditions_WhereOperator :: BetweenExcludeBounds => { } , drive_query_conditions_WhereOperator :: BetweenExcludeLeft => { } , drive_query_conditions_WhereOperator :: BetweenExcludeRight => { } , drive_query_conditions_WhereOperator :: In => { } , drive_query_conditions_WhereOperator :: StartsWith => { } , drive_query_conditions_WhereOperator :: Contains => { } , drive_query_conditions_WhereOperator :: ContainsAny => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Equal_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Equal { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_GreaterThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: GreaterThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThan_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThan { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_LessThanOrEquals_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: LessThanOrEquals { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Between_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Between { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeBounds_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeBounds { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeLeft_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeLeft { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_BetweenExcludeRight_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: BetweenExcludeRight { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_In_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: In { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_StartsWith_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: StartsWith { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_Contains_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: Contains { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_ContainsAny_ctor () -> * mut drive_query_conditions_WhereOperator { ferment :: boxed (drive_query_conditions_WhereOperator :: ContainsAny { }) } # [no_mangle] pub unsafe extern "C" fn drive_query_conditions_WhereOperator_destroy < > (ffi : * mut drive_query_conditions_WhereOperator) { ferment :: unbox_any (ffi) ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_sum_query { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod path_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; # [cfg (any (feature = "server" , feature = "verify"))] pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod test_index { use crate as dash_sdk_bindings ; } pub mod non_primary_key_path_query { use crate as dash_sdk_bindings ; pub mod single_in_path_query { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod multiple_in_path_query { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_having_query { use crate as dash_sdk_bindings ; # [cfg (all (feature = "server" , test))] pub mod tests { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod mode_detection { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod contested_resource_votes_given_by_identity_query { use crate as dash_sdk_bindings ; } # [cfg (feature = "server")] pub mod drive_document_count_and_sum_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod executors { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod composite_document_query { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "server" , feature = "verify"))] pub mod ordering { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`OrderClause`]"] # [repr (C)] # [derive (Clone)] pub struct drive_query_ordering_OrderClause { pub field : * mut std :: os :: raw :: c_char , pub ascending : bool } impl ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const drive_query_ordering_OrderClause) -> drive :: query :: ordering :: OrderClause { let ffi_ref = & * ffi ; drive :: query :: ordering :: OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . field) , ascending : ffi_ref . ascending } } } impl ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause > for drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : drive :: query :: ordering :: OrderClause) -> * const drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . field) , ascending : obj . ascending }) } } impl Drop for drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_string (ffi_ref . field) ; ; } } } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_ctor < > (field : * mut std :: os :: raw :: c_char , ascending : bool) -> * mut drive_query_ordering_OrderClause { ferment :: boxed (drive_query_ordering_OrderClause { field , ascending }) } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_destroy < > (ffi : * mut drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_get_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_field < > (obj : * const drive_query_ordering_OrderClause) -> * mut std :: os :: raw :: c_char { (* obj) . field } # [no_mangle] pub unsafe extern "C" fn drive_query_ordering_OrderClause_set_ascending < > (obj : * const drive_query_ordering_OrderClause) -> bool { (* obj) . ascending } } # [cfg (any (feature = "server" , feature = "verify"))] pub mod drive_document_average_query { use crate as dash_sdk_bindings ; # [cfg (feature = "server")] pub mod drive_dispatcher { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "server")] pub mod open { use crate as dash_sdk_bindings ; } } pub mod rs_dapi_client { use crate as dash_sdk_bindings ; pub mod request_settings { use crate as dash_sdk_bindings ; } pub mod dapi_client { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod connection_pool { use crate as dash_sdk_bindings ; } pub mod transport { use crate as dash_sdk_bindings ; } pub mod address_list { use crate as dash_sdk_bindings ; } pub mod executor { use crate as dash_sdk_bindings ; } } pub mod platform_value { use crate as dash_sdk_bindings ; pub mod value_map { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ValueMap`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_value_map_ValueMap (* mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) ; impl ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_from_const (ffi : * const platform_value_value_map_ValueMap) -> platform_value :: value_map :: ValueMap { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap > for platform_value_value_map_ValueMap { unsafe fn ffi_to_const (obj : platform_value :: value_map :: ValueMap) -> * const platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (< crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value as ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > >> :: ffi_to (obj))) } } impl Drop for platform_value_value_map_ValueMap { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value) -> * mut platform_value_value_map_ValueMap { ferment :: boxed (platform_value_value_map_ValueMap (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_destroy < > (ffi : * mut platform_value_value_map_ValueMap) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_get_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_value_map_ValueMap_set_0 < > (obj : * const platform_value_value_map_ValueMap) -> * mut crate :: fermented :: generics :: Vec_Tuple_platform_value_Value_platform_value_Value { (* obj) . 0 } } pub mod inner_value_at_path { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Value`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_Value { U128 (* mut [u8 ; 16]) , I128 (* mut [u8 ; 16]) , U64 (u64) , I64 (i64) , U32 (u32) , I32 (i32) , U16 (u16) , I16 (i16) , U8 (u8) , I8 (i8) , Bytes (* mut crate :: fermented :: generics :: Vec_u8) , Bytes20 (* mut crate :: fermented :: generics :: Arr_u8_20) , Bytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) , Bytes36 (* mut crate :: fermented :: generics :: Arr_u8_36) , EnumU8 (* mut crate :: fermented :: generics :: Vec_u8) , EnumString (* mut crate :: fermented :: generics :: Vec_String) , Identifier (* mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) , Float (f64) , Text (* mut std :: os :: raw :: c_char) , Bool (bool) , Null , Array (* mut crate :: fermented :: generics :: Vec_platform_value_Value) , Map (* mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) } impl ferment :: FFIConversionFrom < platform_value :: Value > for platform_value_Value { unsafe fn ffi_from_const (ffi : * const platform_value_Value) -> platform_value :: Value { let ffi_ref = & * ffi ; match ffi_ref { platform_value_Value :: U128 (o_0) => platform_value :: Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionFrom < u128 >> :: ffi_from (* o_0)) , platform_value_Value :: I128 (o_0) => platform_value :: Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionFrom < i128 >> :: ffi_from (* o_0)) , platform_value_Value :: U64 (o_0) => platform_value :: Value :: U64 (* o_0) , platform_value_Value :: I64 (o_0) => platform_value :: Value :: I64 (* o_0) , platform_value_Value :: U32 (o_0) => platform_value :: Value :: U32 (* o_0) , platform_value_Value :: I32 (o_0) => platform_value :: Value :: I32 (* o_0) , platform_value_Value :: U16 (o_0) => platform_value :: Value :: U16 (* o_0) , platform_value_Value :: I16 (o_0) => platform_value :: Value :: I16 (* o_0) , platform_value_Value :: U8 (o_0) => platform_value :: Value :: U8 (* o_0) , platform_value_Value :: I8 (o_0) => platform_value :: Value :: I8 (* o_0) , platform_value_Value :: Bytes (o_0) => platform_value :: Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes20 (o_0) => platform_value :: Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes32 (o_0) => platform_value :: Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (* o_0)) , platform_value_Value :: Bytes36 (o_0) => platform_value :: Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (* o_0)) , platform_value_Value :: EnumU8 (o_0) => platform_value :: Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_value_Value :: EnumString (o_0) => platform_value :: Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (* o_0)) , platform_value_Value :: Identifier (o_0) => platform_value :: Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (* o_0)) , platform_value_Value :: Float (o_0) => platform_value :: Value :: Float (* o_0) , platform_value_Value :: Text (o_0) => platform_value :: Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_Value :: Bool (o_0) => platform_value :: Value :: Bool (* o_0) , platform_value_Value :: Null => platform_value :: Value :: Null , platform_value_Value :: Array (o_0) => platform_value :: Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (* o_0)) , platform_value_Value :: Map (o_0) => platform_value :: Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: Value > for platform_value_Value { unsafe fn ffi_to_const (obj : platform_value :: Value) -> * const platform_value_Value { ferment :: boxed (match obj { platform_value :: Value :: U128 (o_0) => platform_value_Value :: U128 (< [u8 ; 16] as ferment :: FFIConversionTo < u128 >> :: ffi_to (o_0)) , platform_value :: Value :: I128 (o_0) => platform_value_Value :: I128 (< [u8 ; 16] as ferment :: FFIConversionTo < i128 >> :: ffi_to (o_0)) , platform_value :: Value :: U64 (o_0) => platform_value_Value :: U64 (o_0) , platform_value :: Value :: I64 (o_0) => platform_value_Value :: I64 (o_0) , platform_value :: Value :: U32 (o_0) => platform_value_Value :: U32 (o_0) , platform_value :: Value :: I32 (o_0) => platform_value_Value :: I32 (o_0) , platform_value :: Value :: U16 (o_0) => platform_value_Value :: U16 (o_0) , platform_value :: Value :: I16 (o_0) => platform_value_Value :: I16 (o_0) , platform_value :: Value :: U8 (o_0) => platform_value_Value :: U8 (o_0) , platform_value :: Value :: I8 (o_0) => platform_value_Value :: I8 (o_0) , platform_value :: Value :: Bytes (o_0) => platform_value_Value :: Bytes (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes20 (o_0) => platform_value_Value :: Bytes20 (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes32 (o_0) => platform_value_Value :: Bytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (o_0)) , platform_value :: Value :: Bytes36 (o_0) => platform_value_Value :: Bytes36 (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (o_0)) , platform_value :: Value :: EnumU8 (o_0) => platform_value_Value :: EnumU8 (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_value :: Value :: EnumString (o_0) => platform_value_Value :: EnumString (< crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (o_0)) , platform_value :: Value :: Identifier (o_0) => platform_value_Value :: Identifier (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (o_0)) , platform_value :: Value :: Float (o_0) => platform_value_Value :: Float (o_0) , platform_value :: Value :: Text (o_0) => platform_value_Value :: Text (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: Value :: Bool (o_0) => platform_value_Value :: Bool (o_0) , platform_value :: Value :: Null => platform_value_Value :: Null , platform_value :: Value :: Array (o_0) => platform_value_Value :: Array (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (o_0)) , platform_value :: Value :: Map (o_0) => platform_value_Value :: Map (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_Value { fn drop (& mut self) { unsafe { match self { platform_value_Value :: U128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: I128 (o_0) => { ferment :: unbox_any_opt (* o_0) ; } , platform_value_Value :: U64 (o_0) => { ; } , platform_value_Value :: I64 (o_0) => { ; } , platform_value_Value :: U32 (o_0) => { ; } , platform_value_Value :: I32 (o_0) => { ; } , platform_value_Value :: U16 (o_0) => { ; } , platform_value_Value :: I16 (o_0) => { ; } , platform_value_Value :: U8 (o_0) => { ; } , platform_value_Value :: I8 (o_0) => { ; } , platform_value_Value :: Bytes (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes20 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes32 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Bytes36 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumU8 (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: EnumString (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Identifier (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Float (o_0) => { ; } , platform_value_Value :: Text (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_Value :: Bool (o_0) => { ; } , platform_value_Value :: Null => { } , platform_value_Value :: Array (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_value_Value :: Map (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I128_ctor (o_o_0 : * mut [u8 ; 16]) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I128 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U64_ctor (o_o_0 : u64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I64_ctor (o_o_0 : i64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I64 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U32_ctor (o_o_0 : u32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I32_ctor (o_o_0 : i32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U16_ctor (o_o_0 : u16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I16_ctor (o_o_0 : i16) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I16 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_U8_ctor (o_o_0 : u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: U8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_I8_ctor (o_o_0 : i8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: I8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes20_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes20 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes32_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes32 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bytes36_ctor (o_o_0 : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bytes36 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumU8_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumU8 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_EnumString_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_String) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: EnumString (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Identifier_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Identifier (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Float_ctor (o_o_0 : f64) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Float (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Text_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Text (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Bool_ctor (o_o_0 : bool) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Bool (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Null_ctor () -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Null { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Array_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Array (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_Map_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut platform_value_Value { ferment :: boxed (platform_value_Value :: Map (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Value_destroy < > (ffi : * mut platform_value_Value) { ferment :: unbox_any (ffi) ; } pub mod patch { use crate as dash_sdk_bindings ; pub mod diff { use crate as dash_sdk_bindings ; } } pub mod converter { use crate as dash_sdk_bindings ; # [cfg (feature = "json")] pub mod serde_json { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod ciborium { use crate as dash_sdk_bindings ; } } pub mod eq { use crate as dash_sdk_bindings ; } pub mod replace { use crate as dash_sdk_bindings ; } pub mod pointer { use crate as dash_sdk_bindings ; } pub mod btreemap_extensions { use crate as dash_sdk_bindings ; pub mod btreemap_field_replacement { use crate as dash_sdk_bindings ; } pub mod btreemap_path_extensions { use crate as dash_sdk_bindings ; } pub mod btreemap_removal_extensions { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod types { use crate as dash_sdk_bindings ; pub mod bytes_36 { use crate as dash_sdk_bindings ; } pub mod bytes_32 { use crate as dash_sdk_bindings ; } pub mod binary_data { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BinaryData`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_binary_data_BinaryData (* mut crate :: fermented :: generics :: Vec_u8) ; impl ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_from_const (ffi : * const platform_value_types_binary_data_BinaryData) -> platform_value :: types :: binary_data :: BinaryData { let ffi_ref = & * ffi ; platform_value :: types :: binary_data :: BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData > for platform_value_types_binary_data_BinaryData { unsafe fn ffi_to_const (obj : platform_value :: types :: binary_data :: BinaryData) -> * const platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_binary_data_BinaryData { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_value_types_binary_data_BinaryData { ferment :: boxed (platform_value_types_binary_data_BinaryData (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_destroy < > (ffi : * mut platform_value_types_binary_data_BinaryData) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_get_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_binary_data_BinaryData_set_0 < > (obj : * const platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . 0 } } pub mod identifier { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentifierBytes32`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_IdentifierBytes32 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_IdentifierBytes32) -> platform_value :: types :: identifier :: IdentifierBytes32 { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 > for platform_value_types_identifier_IdentifierBytes32 { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: IdentifierBytes32) -> * const platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_IdentifierBytes32 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_types_identifier_IdentifierBytes32 { ferment :: boxed (platform_value_types_identifier_IdentifierBytes32 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_destroy < > (ffi : * mut platform_value_types_identifier_IdentifierBytes32) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_get_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_IdentifierBytes32_set_0 < > (obj : * const platform_value_types_identifier_IdentifierBytes32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [doc = "FFI-representation of the [`Identifier`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_types_identifier_Identifier (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) ; impl ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_from_const (ffi : * const platform_value_types_identifier_Identifier) -> platform_value :: types :: identifier :: Identifier { let ffi_ref = & * ffi ; platform_value :: types :: identifier :: Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier > for platform_value_types_identifier_Identifier { unsafe fn ffi_to_const (obj : platform_value :: types :: identifier :: Identifier) -> * const platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 as ferment :: FFIConversionTo < platform_value :: types :: identifier :: IdentifierBytes32 >> :: ffi_to (obj . 0))) } } impl Drop for platform_value_types_identifier_Identifier { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32) -> * mut platform_value_types_identifier_Identifier { ferment :: boxed (platform_value_types_identifier_Identifier (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_destroy < > (ffi : * mut platform_value_types_identifier_Identifier) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_get_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_types_identifier_Identifier_set_0 < > (obj : * const platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_IdentifierBytes32 { (* obj) . 0 } } pub mod bytes_20 { use crate as dash_sdk_bindings ; } } pub mod macros { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Error`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_value_error_Error { Unsupported (* mut std :: os :: raw :: c_char) , StructureError (* mut std :: os :: raw :: c_char) , PathError (* mut std :: os :: raw :: c_char) , IntegerSizeError , IntegerParsingError , StringDecodingError (* mut std :: os :: raw :: c_char) , KeyMustBeAString , ByteLengthNot20BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot32BytesError (* mut std :: os :: raw :: c_char) , ByteLengthNot36BytesError (* mut std :: os :: raw :: c_char) , SerdeSerializationError (* mut std :: os :: raw :: c_char) , SerdeDeserializationError (* mut std :: os :: raw :: c_char) , CborSerializationError (* mut std :: os :: raw :: c_char) } impl ferment :: FFIConversionFrom < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_from_const (ffi : * const platform_value_error_Error) -> platform_value :: error :: Error { let ffi_ref = & * ffi ; match ffi_ref { platform_value_error_Error :: Unsupported (o_0) => platform_value :: error :: Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: StructureError (o_0) => platform_value :: error :: Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: PathError (o_0) => platform_value :: error :: Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: IntegerSizeError => platform_value :: error :: Error :: IntegerSizeError , platform_value_error_Error :: IntegerParsingError => platform_value :: error :: Error :: IntegerParsingError , platform_value_error_Error :: StringDecodingError (o_0) => platform_value :: error :: Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: KeyMustBeAString => platform_value :: error :: Error :: KeyMustBeAString , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => platform_value :: error :: Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeSerializationError (o_0) => platform_value :: error :: Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: SerdeDeserializationError (o_0) => platform_value :: error :: Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) , platform_value_error_Error :: CborSerializationError (o_0) => platform_value :: error :: Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_value :: error :: Error > for platform_value_error_Error { unsafe fn ffi_to_const (obj : platform_value :: error :: Error) -> * const platform_value_error_Error { ferment :: boxed (match obj { platform_value :: error :: Error :: Unsupported (o_0) => platform_value_error_Error :: Unsupported (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: StructureError (o_0) => platform_value_error_Error :: StructureError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: PathError (o_0) => platform_value_error_Error :: PathError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: IntegerSizeError => platform_value_error_Error :: IntegerSizeError , platform_value :: error :: Error :: IntegerParsingError => platform_value_error_Error :: IntegerParsingError , platform_value :: error :: Error :: StringDecodingError (o_0) => platform_value_error_Error :: StringDecodingError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: KeyMustBeAString => platform_value_error_Error :: KeyMustBeAString , platform_value :: error :: Error :: ByteLengthNot20BytesError (o_0) => platform_value_error_Error :: ByteLengthNot20BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot32BytesError (o_0) => platform_value_error_Error :: ByteLengthNot32BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: ByteLengthNot36BytesError (o_0) => platform_value_error_Error :: ByteLengthNot36BytesError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeSerializationError (o_0) => platform_value_error_Error :: SerdeSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: SerdeDeserializationError (o_0) => platform_value_error_Error :: SerdeDeserializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , platform_value :: error :: Error :: CborSerializationError (o_0) => platform_value_error_Error :: CborSerializationError (< std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_value_error_Error { fn drop (& mut self) { unsafe { match self { platform_value_error_Error :: Unsupported (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: StructureError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: PathError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: IntegerSizeError => { } , platform_value_error_Error :: IntegerParsingError => { } , platform_value_error_Error :: StringDecodingError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: KeyMustBeAString => { } , platform_value_error_Error :: ByteLengthNot20BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot32BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: ByteLengthNot36BytesError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: SerdeDeserializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , platform_value_error_Error :: CborSerializationError (o_0) => { ferment :: unbox_string (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_Unsupported_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: Unsupported (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StructureError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StructureError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_PathError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: PathError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerSizeError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerSizeError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_IntegerParsingError_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: IntegerParsingError { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_StringDecodingError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: StringDecodingError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_KeyMustBeAString_ctor () -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: KeyMustBeAString { }) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot20BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot20BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot32BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot32BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_ByteLengthNot36BytesError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: ByteLengthNot36BytesError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_SerdeDeserializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: SerdeDeserializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_CborSerializationError_ctor (o_o_0 : * mut std :: os :: raw :: c_char) -> * mut platform_value_error_Error { ferment :: boxed (platform_value_error_Error :: CborSerializationError (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_error_Error_destroy < > (ffi : * mut platform_value_error_Error) { ferment :: unbox_any (ffi) ; } } pub mod inner_value { use crate as dash_sdk_bindings ; } pub mod value_serialization { use crate as dash_sdk_bindings ; pub mod de { use crate as dash_sdk_bindings ; } pub mod ser { use crate as dash_sdk_bindings ; } } pub mod system_bytes { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Hash256`]"] # [repr (C)] # [derive (Clone)] pub struct platform_value_Hash256 (* mut crate :: fermented :: generics :: Arr_u8_32) ; impl ferment :: FFIConversionFrom < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_from_const (ffi : * const platform_value_Hash256) -> platform_value :: Hash256 { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < platform_value :: Hash256 > for platform_value_Hash256 { unsafe fn ffi_to_const (obj : platform_value :: Hash256) -> * const platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj))) } } impl Drop for platform_value_Hash256 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut platform_value_Hash256 { ferment :: boxed (platform_value_Hash256 (o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_destroy < > (ffi : * mut platform_value_Hash256) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_get_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn platform_value_Hash256_set_0 < > (obj : * const platform_value_Hash256) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . 0 } pub mod index { use crate as dash_sdk_bindings ; } } pub mod dpp { use crate as dash_sdk_bindings ; # [cfg (feature = "system_contracts")] pub mod system_data_contracts { use crate as dash_sdk_bindings ; } pub mod withdrawal { use crate as dash_sdk_bindings ; pub mod core_dust_threshold { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod pooling_serde { use crate as dash_sdk_bindings ; } pub mod daily_withdrawal_limit { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } # [cfg (all (feature = "withdrawals-contract" , feature = "system_contracts"))] pub mod document_try_into_asset_unlock_base_transaction_info { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod core_credit_pool_unlock_limit { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod metadata { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; pub mod credits_converter { use crate as dash_sdk_bindings ; } pub mod core_script { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod identity_nonce { use crate as dash_sdk_bindings ; } pub mod identity_public_key { use crate as dash_sdk_bindings ; pub mod security_level { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`SecurityLevel`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_security_level_SecurityLevel { MASTER = 0 , CRITICAL = 1 , HIGH = 2 , MEDIUM = 3 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_security_level_SecurityLevel) -> dpp :: identity :: identity_public_key :: security_level :: SecurityLevel { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel > for dpp_identity_identity_public_key_security_level_SecurityLevel { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: security_level :: SecurityLevel) -> * const dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MASTER => dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: CRITICAL => dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: HIGH => dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH , dpp :: identity :: identity_public_key :: security_level :: SecurityLevel :: MEDIUM => dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_security_level_SecurityLevel { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH => { } , dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MASTER_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MASTER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_CRITICAL_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: CRITICAL { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_HIGH_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: HIGH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_MEDIUM_ctor () -> * mut dpp_identity_identity_public_key_security_level_SecurityLevel { ferment :: boxed (dpp_identity_identity_public_key_security_level_SecurityLevel :: MEDIUM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_security_level_SecurityLevel_destroy < > (ffi : * mut dpp_identity_identity_public_key_security_level_SecurityLevel) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_TimestampMillis) -> dpp :: identity :: identity_public_key :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis > for dpp_identity_identity_public_key_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: TimestampMillis) -> * const dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (obj)) } } impl Drop for dpp_identity_identity_public_key_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_identity_identity_public_key_TimestampMillis { ferment :: boxed (dpp_identity_identity_public_key_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_destroy < > (ffi : * mut dpp_identity_identity_public_key_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_get_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_TimestampMillis_set_0 < > (obj : * const dpp_identity_identity_public_key_TimestampMillis) -> u64 { (* obj) . 0 } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } } pub mod contract_bounds { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContractBounds`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_contract_bounds_ContractBounds { SingleContract { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } , SingleContractDocumentType { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char } , ContractGroup { id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier } } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (* document_type_name) } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* id) } } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds > for dpp_identity_identity_public_key_contract_bounds_ContractBounds { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds) -> * const dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContract { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: SingleContractDocumentType { id , document_type_name } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (document_type_name) } , dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds :: ContractGroup { id } => dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (id) } , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_contract_bounds_ContractBounds { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id } => { ferment :: unbox_any (* id) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name } => { ferment :: unbox_any (* id) ; ; ferment :: unbox_string (* document_type_name) ; } , dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id } => { ferment :: unbox_any (* id) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContract_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContract { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_SingleContractDocumentType_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: SingleContractDocumentType { id , document_type_name }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_ContractGroup_ctor (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds { ferment :: boxed (dpp_identity_identity_public_key_contract_bounds_ContractBounds :: ContractGroup { id }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_contract_bounds_ContractBounds_destroy < > (ffi : * mut dpp_identity_identity_public_key_contract_bounds_ContractBounds) { ferment :: unbox_any (ffi) ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { pub id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , pub security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_from (ffi_ref . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_from (ffi_ref . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_from (ffi_ref . key_type) , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 > for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0) -> * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj . id) , purpose : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose >> :: ffi_to (obj . purpose) , security_level : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: security_level :: SecurityLevel >> :: ffi_to (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType >> :: ffi_to (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) }) } } impl Drop for dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_ctor < > (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , purpose : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose , security_level : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { ferment :: boxed (dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_destroy < > (ffi : * mut dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_id < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_purpose < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: purpose :: dpp_identity_identity_public_key_purpose_Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_security_level < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: security_level :: dpp_identity_identity_public_key_security_level_SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_key_type < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: key_type :: dpp_identity_identity_public_key_key_type_KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_read_only < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_data < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v0_IdentityPublicKeyV0_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } pub mod methods { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`IdentityPublicKey`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_IdentityPublicKey { V0 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) , V1 (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_IdentityPublicKey) -> dpp :: identity :: identity_public_key :: IdentityPublicKey { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (* o_0)) , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey > for dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: IdentityPublicKey) -> * const dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: IdentityPublicKey :: V0 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V0 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (o_0)) , dpp :: identity :: identity_public_key :: IdentityPublicKey :: V1 (o_0) => dpp_identity_identity_public_key_IdentityPublicKey :: V1 (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_V1_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (dpp_identity_identity_public_key_IdentityPublicKey :: V1 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_IdentityPublicKey_destroy < > (ffi : * mut dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod hash { use crate as dash_sdk_bindings ; } } pub mod key_type { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`KeyType`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_key_type_KeyType { ECDSA_SECP256K1 = 0 , BLS12_381 = 1 , ECDSA_HASH160 = 2 , BIP13_SCRIPT_HASH = 3 , EDDSA_25519_HASH160 = 4 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_key_type_KeyType) -> dpp :: identity :: identity_public_key :: key_type :: KeyType { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: key_type :: KeyType > for dpp_identity_identity_public_key_key_type_KeyType { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: key_type :: KeyType) -> * const dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_SECP256K1 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BLS12_381 => dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: ECDSA_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 , dpp :: identity :: identity_public_key :: key_type :: KeyType :: BIP13_SCRIPT_HASH => dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH , dpp :: identity :: identity_public_key :: key_type :: KeyType :: EDDSA_25519_HASH160 => dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_key_type_KeyType { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 => { } , dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 => { } , dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH => { } , dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_SECP256K1_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_SECP256K1 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BLS12_381_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BLS12_381 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_ECDSA_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: ECDSA_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_BIP13_SCRIPT_HASH_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: BIP13_SCRIPT_HASH { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_EDDSA_25519_HASH160_ctor () -> * mut dpp_identity_identity_public_key_key_type_KeyType { ferment :: boxed (dpp_identity_identity_public_key_key_type_KeyType :: EDDSA_25519_HASH160 { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_key_type_KeyType_destroy < > (ffi : * mut dpp_identity_identity_public_key_key_type_KeyType) { ferment :: unbox_any (ffi) ; } } pub mod purpose { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Purpose`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_public_key_purpose_Purpose { AUTHENTICATION = 0 , ENCRYPTION = 1 , DECRYPTION = 2 , TRANSFER = 3 , SYSTEM = 4 , VOTING = 5 , OWNER = 6 } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_purpose_Purpose) -> dpp :: identity :: identity_public_key :: purpose :: Purpose { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: purpose :: Purpose > for dpp_identity_identity_public_key_purpose_Purpose { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: purpose :: Purpose) -> * const dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (match obj { dpp :: identity :: identity_public_key :: purpose :: Purpose :: AUTHENTICATION => dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: ENCRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: DECRYPTION => dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION , dpp :: identity :: identity_public_key :: purpose :: Purpose :: TRANSFER => dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER , dpp :: identity :: identity_public_key :: purpose :: Purpose :: SYSTEM => dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM , dpp :: identity :: identity_public_key :: purpose :: Purpose :: VOTING => dpp_identity_identity_public_key_purpose_Purpose :: VOTING , dpp :: identity :: identity_public_key :: purpose :: Purpose :: OWNER => dpp_identity_identity_public_key_purpose_Purpose :: OWNER , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_public_key_purpose_Purpose { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION => { } , dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION => { } , dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER => { } , dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM => { } , dpp_identity_identity_public_key_purpose_Purpose :: VOTING => { } , dpp_identity_identity_public_key_purpose_Purpose :: OWNER => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_AUTHENTICATION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: AUTHENTICATION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_ENCRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: ENCRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_DECRYPTION_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: DECRYPTION { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_TRANSFER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: TRANSFER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_SYSTEM_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: SYSTEM { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_VOTING_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: VOTING { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_OWNER_ctor () -> * mut dpp_identity_identity_public_key_purpose_Purpose { ferment :: boxed (dpp_identity_identity_public_key_purpose_Purpose :: OWNER { }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_purpose_Purpose_destroy < > (ffi : * mut dpp_identity_identity_public_key_purpose_Purpose) { ferment :: unbox_any (ffi) ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityPublicKeyV1`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { pub id : * mut dpp :: identity :: KeyID , pub purpose : * mut dpp :: identity :: Purpose , pub security_level : * mut dpp :: identity :: SecurityLevel , pub contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , pub key_type : * mut dpp :: identity :: KeyType , pub read_only : bool , pub data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , pub disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , pub expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis } impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { let ffi_ref = & * ffi ; dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 { id : (& * ffi_ref . id) . clone () , purpose : (& * ffi_ref . purpose) . clone () , security_level : (& * ffi_ref . security_level) . clone () , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from_opt (ffi_ref . contract_bounds) , key_type : (& * ffi_ref . key_type) . clone () , read_only : ffi_ref . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (ffi_ref . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from_opt (ffi_ref . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . expires_at) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 > for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1) -> * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id : ferment :: boxed (obj . id) , purpose : ferment :: boxed (obj . purpose) , security_level : ferment :: boxed (obj . security_level) , contract_bounds : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to_opt (obj . contract_bounds) , key_type : ferment :: boxed (obj . key_type) , read_only : obj . read_only , data : < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj . data) , disabled_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . disabled_at) , total_budget : < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to_opt (obj . total_budget) , expires_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . expires_at) }) } } impl Drop for dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . purpose) ; ferment :: unbox_any (ffi_ref . security_level) ; ferment :: unbox_any_opt (ffi_ref . contract_bounds) ; ferment :: unbox_any (ffi_ref . key_type) ; ; ferment :: unbox_any (ffi_ref . data) ; ferment :: unbox_any_opt (ffi_ref . disabled_at) ; ferment :: unbox_any_opt (ffi_ref . total_budget) ; ferment :: unbox_any_opt (ffi_ref . expires_at) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_ctor < > (id : * mut dpp :: identity :: KeyID , purpose : * mut dpp :: identity :: Purpose , security_level : * mut dpp :: identity :: SecurityLevel , contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds , key_type : * mut dpp :: identity :: KeyType , read_only : bool , data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData , disabled_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , total_budget : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits , expires_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { ferment :: boxed (dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { id , purpose , security_level , contract_bounds , key_type , read_only , data , disabled_at , total_budget , expires_at }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_destroy < > (ffi : * mut dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_get_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_id < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyID { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_purpose < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: Purpose { (* obj) . purpose } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_security_level < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: SecurityLevel { (* obj) . security_level } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_contract_bounds < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { (* obj) . contract_bounds } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_key_type < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut dpp :: identity :: KeyType { (* obj) . key_type } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_read_only < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> bool { (* obj) . read_only } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_data < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { (* obj) . data } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_disabled_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . disabled_at } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_total_budget < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { (* obj) . total_budget } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_v1_IdentityPublicKeyV1_set_expires_at < > (obj : * const dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . expires_at } } pub mod accessors { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`KeyCount`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyCount (* mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyCount) -> dpp :: identity :: identity_public_key :: KeyCount { let ffi_ref = & * ffi ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyCount > for dpp_identity_identity_public_key_KeyCount { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyCount) -> * const dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj))) } } impl Drop for dpp_identity_identity_public_key_KeyCount { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_ctor < > (o_0 : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut dpp_identity_identity_public_key_KeyCount { ferment :: boxed (dpp_identity_identity_public_key_KeyCount (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyCount) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyCount_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyCount) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { (* obj) . 0 } # [doc = "FFI-representation of the [`KeyID`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_identity_public_key_KeyID (u32) ; impl ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_public_key_KeyID) -> dpp :: identity :: identity_public_key :: KeyID { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID > for dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : dpp :: identity :: identity_public_key :: KeyID) -> * const dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (obj)) } } impl Drop for dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_ctor < > (o_0 : u32) -> * mut dpp_identity_identity_public_key_KeyID { ferment :: boxed (dpp_identity_identity_public_key_KeyID (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_destroy < > (ffi : * mut dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_get_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_public_key_KeyID_set_0 < > (obj : * const dpp_identity_identity_public_key_KeyID) -> u32 { (* obj) . 0 } } # [cfg (feature = "client")] pub mod identity_facade { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value { use crate as dash_sdk_bindings ; } # [cfg (feature = "identity-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (feature = "factories")] pub mod identity_factory { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`IdentityV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_identity_v0_IdentityV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , pub balance : u64 , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision } impl ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_from_const (ffi : * const dpp_identity_v0_IdentityV0) -> dpp :: identity :: v0 :: IdentityV0 { let ffi_ref = & * ffi ; dpp :: identity :: v0 :: IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (ffi_ref . public_keys) , balance : ffi_ref . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (ffi_ref . revision) } } } impl ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 > for dpp_identity_v0_IdentityV0 { unsafe fn ffi_to_const (obj : dpp :: identity :: v0 :: IdentityV0) -> * const dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , public_keys : < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj . public_keys) , balance : obj . balance , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj . revision) }) } } impl Drop for dpp_identity_v0_IdentityV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . public_keys) ; ; ferment :: unbox_any (ffi_ref . revision) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey , balance : u64 , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut dpp_identity_v0_IdentityV0 { ferment :: boxed (dpp_identity_v0_IdentityV0 { id , public_keys , balance , revision }) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_destroy < > (ffi : * mut dpp_identity_v0_IdentityV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_get_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_id < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_public_keys < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { (* obj) . public_keys } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_balance < > (obj : * const dpp_identity_v0_IdentityV0) -> u64 { (* obj) . balance } # [no_mangle] pub unsafe extern "C" fn dpp_identity_v0_IdentityV0_set_revision < > (obj : * const dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } } pub mod methods { use crate as dash_sdk_bindings ; pub mod create_basic_identity { use crate as dash_sdk_bindings ; } } pub mod state_transition { use crate as dash_sdk_bindings ; pub mod asset_lock_proof { use crate as dash_sdk_bindings ; pub mod chain { use crate as dash_sdk_bindings ; pub mod chain_asset_lock_proof { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod instant { use crate as dash_sdk_bindings ; pub mod instant_asset_lock_proof { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; } } } pub mod validate_asset_lock_transaction_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Identity`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_identity_identity_Identity { V0 (* mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) } impl ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_from_const (ffi : * const dpp_identity_identity_Identity) -> dpp :: identity :: identity :: Identity { let ffi_ref = & * ffi ; match ffi_ref { dpp_identity_identity_Identity :: V0 (o_0) => dpp :: identity :: identity :: Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity > for dpp_identity_identity_Identity { unsafe fn ffi_to_const (obj : dpp :: identity :: identity :: Identity) -> * const dpp_identity_identity_Identity { ferment :: boxed (match obj { dpp :: identity :: identity :: Identity :: V0 (o_0) => dpp_identity_identity_Identity :: V0 (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_identity_identity_Identity { fn drop (& mut self) { unsafe { match self { dpp_identity_identity_Identity :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut dpp_identity_identity_Identity { ferment :: boxed (dpp_identity_identity_Identity :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_identity_identity_Identity_destroy < > (ffi : * mut dpp_identity_identity_Identity) { ferment :: unbox_any (ffi) ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod compute_minimum_shielded_fee { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod memo { use crate as dash_sdk_bindings ; } # [cfg (feature = "shielded-client")] pub mod builder { use crate as dash_sdk_bindings ; pub mod token_shield { use crate as dash_sdk_bindings ; } pub mod token_claim_to_pool { use crate as dash_sdk_bindings ; } pub mod shield_from_identity { use crate as dash_sdk_bindings ; } pub mod token_pool_paid { use crate as dash_sdk_bindings ; } pub mod token_burn_from_pool { use crate as dash_sdk_bindings ; } pub mod token_shielded_transfer { use crate as dash_sdk_bindings ; } pub mod identity_top_up_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod shielded_withdrawal { use crate as dash_sdk_bindings ; } pub mod shield_from_asset_lock { use crate as dash_sdk_bindings ; } pub mod token_direct_purchase_to_pool { use crate as dash_sdk_bindings ; } pub mod unshield { use crate as dash_sdk_bindings ; } pub mod document_token_payment { use crate as dash_sdk_bindings ; } pub mod token_mint_to_pool { use crate as dash_sdk_bindings ; } pub mod shielded_transfer { use crate as dash_sdk_bindings ; } pub mod shield { use crate as dash_sdk_bindings ; } pub mod identity_create_from_shielded_pool { use crate as dash_sdk_bindings ; } pub mod token_unshield { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod sighash { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fixtures-and-mocks")] pub mod tests { use crate as dash_sdk_bindings ; pub mod fixtures { use crate as dash_sdk_bindings ; } } pub mod core_subsidy { use crate as dash_sdk_bindings ; pub mod epoch_core_reward_credits_for_distribution { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod data_contract { use crate as dash_sdk_bindings ; pub mod config { use crate as dash_sdk_bindings ; pub mod moderation { use crate as dash_sdk_bindings ; pub mod document_removal { use crate as dash_sdk_bindings ; } pub mod elected { use crate as dash_sdk_bindings ; } pub mod reason { use crate as dash_sdk_bindings ; } pub mod settled_deletion { use crate as dash_sdk_bindings ; } } pub mod fields { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } } # [cfg (feature = "factories")] pub mod factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod change_control_rules { use crate as dash_sdk_bindings ; pub mod authorized_action_takers { use crate as dash_sdk_bindings ; } } pub mod storage_requirements { use crate as dash_sdk_bindings ; pub mod keys_for_document_type { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod validate_groups { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod equal_ignoring_time_based_fields { use crate as dash_sdk_bindings ; } pub mod registration_cost { use crate as dash_sdk_bindings ; pub mod v2 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod extra { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod drive_api_tests { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; } # [cfg (any (feature = "value-conversion" , feature = "data-contract-cbor-conversion" , feature = "json-conversion" , feature = "serde-conversion"))] pub mod conversion { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod value { use crate as dash_sdk_bindings ; } # [cfg (feature = "data-contract-cbor-conversion")] pub mod cbor { use crate as dash_sdk_bindings ; } # [cfg (feature = "json-conversion")] pub mod json { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod serde { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod serialization { use crate as dash_sdk_bindings ; } pub mod conversion { use crate as dash_sdk_bindings ; } } pub mod document_type { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod recursive_schema_validator { use crate as dash_sdk_bindings ; pub mod traversal_validator { use crate as dash_sdk_bindings ; } } pub mod expand_property_type_shorthands { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_schema_compatibility { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod find_identifier_and_binary_paths { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validate_max_depth { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod enrich_with_base_schema { use crate as dash_sdk_bindings ; } pub mod allowed_top_level_properties { use crate as dash_sdk_bindings ; } } pub mod action_fees { use crate as dash_sdk_bindings ; pub mod agreement { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod token_costs { use crate as dash_sdk_bindings ; } pub mod class_methods { use crate as dash_sdk_bindings ; pub mod create_document_types_from_document_schemas { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod try_from_schema { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v2 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v3 { use crate as dash_sdk_bindings ; pub mod ranked_prefix_overlap { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod immutable_tests { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod parse_typed_array { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_required_since { use crate as dash_sdk_bindings ; } pub mod should_use_creator_id { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod property { use crate as dash_sdk_bindings ; pub mod generated_from { use crate as dash_sdk_bindings ; pub mod system_function { use crate as dash_sdk_bindings ; pub mod string_transformations { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod reference_where { use crate as dash_sdk_bindings ; } pub mod reference_lookup { use crate as dash_sdk_bindings ; } pub mod reference_expression { use crate as dash_sdk_bindings ; } pub mod array { use crate as dash_sdk_bindings ; } pub mod lookup_preimage { use crate as dash_sdk_bindings ; } } pub mod property_names { use crate as dash_sdk_bindings ; pub mod moderator_abilities { use crate as dash_sdk_bindings ; } } pub mod index { use crate as dash_sdk_bindings ; pub mod integer_range { use crate as dash_sdk_bindings ; } pub mod extract_contested_values { use crate as dash_sdk_bindings ; } pub mod outlives_delete { use crate as dash_sdk_bindings ; } pub mod time_range { use crate as dash_sdk_bindings ; } pub mod preallocation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; # [cfg (feature = "validation")] pub mod validate_update { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod common { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod property_constraints { use crate as dash_sdk_bindings ; } pub mod index_level { use crate as dash_sdk_bindings ; } # [cfg (feature = "random-documents")] pub mod random_document { use crate as dash_sdk_bindings ; } } pub mod associated_token { use crate as dash_sdk_bindings ; pub mod token_keeps_history_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_convention { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_localizations { use crate as dash_sdk_bindings ; } } } pub mod token_distribution_rules { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_once_per_identity_distribution { use crate as dash_sdk_bindings ; } } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_distribution_key { use crate as dash_sdk_bindings ; } pub mod token_once_per_identity_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_token_configuration_update { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod can_apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_token_configuration_groups_exist { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod authorized_action_takers_for_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod apply_token_configuration_item { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } # [cfg (all (test , feature = "json-conversion" , feature = "value-conversion" , feature = "serde-conversion"))] pub mod json_convertible_tests { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_perpetual_distribution { use crate as dash_sdk_bindings ; pub mod reward_distribution_type { use crate as dash_sdk_bindings ; pub mod validation { use crate as dash_sdk_bindings ; } pub mod max_cycle_moment { use crate as dash_sdk_bindings ; } } pub mod distribution_function { use crate as dash_sdk_bindings ; pub mod evaluate { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod evaluate_interval { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod validation { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod encode { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod reward_distribution_moment { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod distribution_recipient { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod token_configuration_item { use crate as dash_sdk_bindings ; } pub mod token_pre_programmed_distribution { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod validate_amounts { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } } pub mod token_marketplace_rules { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_configuration_localization { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod serialized_version { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } # [cfg (any (feature = "state-transitions" , feature = "factories"))] pub mod created_data_contract { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod conversion { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; pub mod schema { use crate as dash_sdk_bindings ; } } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } } } pub mod group { use crate as dash_sdk_bindings ; pub mod group_action_status { use crate as dash_sdk_bindings ; } pub mod group_action { use crate as dash_sdk_bindings ; } pub mod action_event { use crate as dash_sdk_bindings ; } } pub mod block { use crate as dash_sdk_bindings ; pub mod extended_block_info { use crate as dash_sdk_bindings ; } pub mod finalized_epoch_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod epoch { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Epoch`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_Epoch { pub index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , pub key : * mut crate :: fermented :: generics :: Arr_u8_2 } impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_Epoch) -> dpp :: block :: epoch :: Epoch { let ffi_ref = & * ffi ; dpp :: block :: epoch :: Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex >> :: ffi_from (ffi_ref . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionFrom < [u8 ; 2] >> :: ffi_from (ffi_ref . key) } } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch > for dpp_block_epoch_Epoch { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: Epoch) -> * const dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex as ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex >> :: ffi_to (obj . index) , key : < crate :: fermented :: generics :: Arr_u8_2 as ferment :: FFIConversionTo < [u8 ; 2] >> :: ffi_to (obj . key) }) } } impl Drop for dpp_block_epoch_Epoch { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . index) ; ferment :: unbox_any (ffi_ref . key) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_ctor < > (index : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex , key : * mut crate :: fermented :: generics :: Arr_u8_2) -> * mut dpp_block_epoch_Epoch { ferment :: boxed (dpp_block_epoch_Epoch { index , key }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_destroy < > (ffi : * mut dpp_block_epoch_Epoch) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_get_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_index < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_EpochIndex { (* obj) . index } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_Epoch_set_key < > (obj : * const dpp_block_epoch_Epoch) -> * mut crate :: fermented :: generics :: Arr_u8_2 { (* obj) . key } # [doc = "FFI-representation of the [`EpochIndex`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_epoch_EpochIndex (u16) ; impl ferment :: FFIConversionFrom < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_from_const (ffi : * const dpp_block_epoch_EpochIndex) -> dpp :: block :: epoch :: EpochIndex { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: block :: epoch :: EpochIndex > for dpp_block_epoch_EpochIndex { unsafe fn ffi_to_const (obj : dpp :: block :: epoch :: EpochIndex) -> * const dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (obj)) } } impl Drop for dpp_block_epoch_EpochIndex { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_ctor < > (o_0 : u16) -> * mut dpp_block_epoch_EpochIndex { ferment :: boxed (dpp_block_epoch_EpochIndex (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_destroy < > (ffi : * mut dpp_block_epoch_EpochIndex) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_get_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_block_epoch_EpochIndex_set_0 < > (obj : * const dpp_block_epoch_EpochIndex) -> u16 { (* obj) . 0 } } pub mod block_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`BlockInfo`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_block_block_info_BlockInfo { pub time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch } impl ferment :: FFIConversionFrom < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const dpp_block_block_info_BlockInfo) -> dpp :: block :: block_info :: BlockInfo { let ffi_ref = & * ffi ; dpp :: block :: block_info :: BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (ffi_ref . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (ffi_ref . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (ffi_ref . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionFrom < dpp :: block :: epoch :: Epoch >> :: ffi_from (ffi_ref . epoch) } } } impl ferment :: FFIConversionTo < dpp :: block :: block_info :: BlockInfo > for dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : dpp :: block :: block_info :: BlockInfo) -> * const dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj . time_ms) , height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj . height) , core_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj . core_height) , epoch : < crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch as ferment :: FFIConversionTo < dpp :: block :: epoch :: Epoch >> :: ffi_to (obj . epoch) }) } } impl Drop for dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . time_ms) ; ferment :: unbox_any (ffi_ref . height) ; ferment :: unbox_any (ffi_ref . core_height) ; ferment :: unbox_any (ffi_ref . epoch) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_ctor < > (time_ms : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , epoch : * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch) -> * mut dpp_block_block_info_BlockInfo { ferment :: boxed (dpp_block_block_info_BlockInfo { time_ms , height , core_height , epoch }) } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_destroy < > (ffi : * mut dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_get_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_time_ms < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { (* obj) . time_ms } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_core_height < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . core_height } # [no_mangle] pub unsafe extern "C" fn dpp_block_block_info_BlockInfo_set_epoch < > (obj : * const dpp_block_block_info_BlockInfo) -> * mut crate :: fermented :: types :: dpp :: block :: epoch :: dpp_block_epoch_Epoch { (* obj) . epoch } } pub mod extended_epoch_info { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod token_event { use crate as dash_sdk_bindings ; } pub mod contract_info { use crate as dash_sdk_bindings ; } pub mod token_payment_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod token_pricing_schedule { use crate as dash_sdk_bindings ; } pub mod status { use crate as dash_sdk_bindings ; } pub mod emergency_action { use crate as dash_sdk_bindings ; } pub mod info { use crate as dash_sdk_bindings ; } pub mod gas_fees_paid_by { use crate as dash_sdk_bindings ; } } pub mod balances { use crate as dash_sdk_bindings ; pub mod credits { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`Credits`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_balances_credits_Credits (u64) ; impl ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_from_const (ffi : * const dpp_balances_credits_Credits) -> dpp :: balances :: credits :: Credits { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits > for dpp_balances_credits_Credits { unsafe fn ffi_to_const (obj : dpp :: balances :: credits :: Credits) -> * const dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (obj)) } } impl Drop for dpp_balances_credits_Credits { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_ctor < > (o_0 : u64) -> * mut dpp_balances_credits_Credits { ferment :: boxed (dpp_balances_credits_Credits (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_destroy < > (ffi : * mut dpp_balances_credits_Credits) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_get_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_balances_credits_Credits_set_0 < > (obj : * const dpp_balances_credits_Credits) -> u64 { (* obj) . 0 } } } pub mod document { use crate as dash_sdk_bindings ; # [cfg (feature = "factories")] pub mod document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod generate_document_id { use crate as dash_sdk_bindings ; } pub mod document_patch { use crate as dash_sdk_bindings ; } # [cfg (feature = "extended-document")] pub mod extended_document { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Document`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_document_Document { V0 (* mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) } impl ferment :: FFIConversionFrom < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_from_const (ffi : * const dpp_document_Document) -> dpp :: document :: Document { let ffi_ref = & * ffi ; match ffi_ref { dpp_document_Document :: V0 (o_0) => dpp :: document :: Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: document :: Document > for dpp_document_Document { unsafe fn ffi_to_const (obj : dpp :: document :: Document) -> * const dpp_document_Document { ferment :: boxed (match obj { dpp :: document :: Document :: V0 (o_0) => dpp_document_Document :: V0 (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_document_Document { fn drop (& mut self) { unsafe { match self { dpp_document_Document :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut dpp_document_Document { ferment :: boxed (dpp_document_Document :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_document_Document_destroy < > (ffi : * mut dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [cfg (feature = "factories")] pub mod specialized_document_factory { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod serialize { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`DocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_document_v0_DocumentV0 { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , pub revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , pub created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , pub created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , pub creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , pub moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub contract_version : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_document_v0_DocumentV0) -> dpp :: document :: v0 :: DocumentV0 { let ffi_ref = & * ffi ; dpp :: document :: v0 :: DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (ffi_ref . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from_opt (ffi_ref . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from_opt (ffi_ref . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from_opt (ffi_ref . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (ffi_ref . moderated_by) , contract_version : ferment :: from_opt_primitive (ffi_ref . contract_version) } } } impl ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 > for dpp_document_v0_DocumentV0 { unsafe fn ffi_to_const (obj : dpp :: document :: v0 :: DocumentV0) -> * const dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , properties : < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj . properties) , revision : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to_opt (obj . revision) , created_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . created_at) , updated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . updated_at) , transferred_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . transferred_at) , created_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . created_at_block_height) , updated_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . updated_at_block_height) , transferred_at_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to_opt (obj . transferred_at_block_height) , created_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . created_at_core_block_height) , updated_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . updated_at_core_block_height) , transferred_at_core_block_height : < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to_opt (obj . transferred_at_core_block_height) , creator_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . creator_id) , moderated_at : < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to_opt (obj . moderated_at) , moderated_by : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to_opt (obj . moderated_by) , contract_version : ferment :: to_opt_primitive (obj . contract_version) }) } } impl Drop for dpp_document_v0_DocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . properties) ; ferment :: unbox_any_opt (ffi_ref . revision) ; ferment :: unbox_any_opt (ffi_ref . created_at) ; ferment :: unbox_any_opt (ffi_ref . updated_at) ; ferment :: unbox_any_opt (ffi_ref . transferred_at) ; ferment :: unbox_any_opt (ffi_ref . created_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_block_height) ; ferment :: unbox_any_opt (ffi_ref . created_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . updated_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . transferred_at_core_block_height) ; ferment :: unbox_any_opt (ffi_ref . creator_id) ; ferment :: unbox_any_opt (ffi_ref . moderated_at) ; ferment :: unbox_any_opt (ffi_ref . moderated_by) ; ferment :: destroy_opt_primitive (ffi_ref . contract_version) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , properties : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value , revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision , created_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , updated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , transferred_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , created_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , updated_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , transferred_at_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , created_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , updated_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , transferred_at_core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , creator_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , moderated_at : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , moderated_by : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_version : * mut u32) -> * mut dpp_document_v0_DocumentV0 { ferment :: boxed (dpp_document_v0_DocumentV0 { id , owner_id , properties , revision , created_at , updated_at , transferred_at , created_at_block_height , updated_at_block_height , transferred_at_block_height , created_at_core_block_height , updated_at_core_block_height , transferred_at_core_block_height , creator_id , moderated_at , moderated_by , contract_version }) } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_destroy < > (ffi : * mut dpp_document_v0_DocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_get_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_owner_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_properties < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { (* obj) . properties } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_revision < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . created_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . updated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . transferred_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . created_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . updated_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { (* obj) . transferred_at_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_created_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . created_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_updated_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . updated_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_transferred_at_core_block_height < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { (* obj) . transferred_at_core_block_height } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_creator_id < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . creator_id } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_at < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { (* obj) . moderated_at } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_moderated_by < > (obj : * const dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . moderated_by } # [no_mangle] pub unsafe extern "C" fn dpp_document_v0_DocumentV0_set_contract_version < > (obj : * const dpp_document_v0_DocumentV0) -> * mut u32 { (* obj) . contract_version } } pub mod serialization_traits { use crate as dash_sdk_bindings ; # [cfg (feature = "document-cbor-conversion")] pub mod cbor_conversion { use crate as dash_sdk_bindings ; } pub mod platform_serialization_conversion { use crate as dash_sdk_bindings ; pub mod serialize { use crate as dash_sdk_bindings ; } pub mod deserialize { use crate as dash_sdk_bindings ; } } # [cfg (feature = "value-conversion")] pub mod platform_value_conversion { use crate as dash_sdk_bindings ; } } pub mod document_methods { use crate as dash_sdk_bindings ; pub mod get_raw_array_elements_for_document_type { use crate as dash_sdk_bindings ; } pub mod is_equal_ignoring_timestamps { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod get_raw_for_contract { use crate as dash_sdk_bindings ; } pub mod get_raw_for_document_type { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod hash { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } # [cfg (feature = "core-types")] pub mod core_types { use crate as dash_sdk_bindings ; pub mod validator { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validator_set { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod validation { use crate as dash_sdk_bindings ; pub mod validation_result { use crate as dash_sdk_bindings ; pub mod flatten { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod merge_many { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "validation")] pub mod byte_array_keyword { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } # [cfg (feature = "validation")] pub mod meta_validators { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod json_schema_validator { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod new { use crate as dash_sdk_bindings ; } pub mod validate { use crate as dash_sdk_bindings ; } pub mod compile { use crate as dash_sdk_bindings ; } } } } pub mod moderation_charter { use crate as dash_sdk_bindings ; pub mod reward_split { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; # [cfg (feature = "json-conversion")] pub mod serde_helpers { use crate as dash_sdk_bindings ; pub mod address_output_map_required_amount { use crate as dash_sdk_bindings ; } pub mod address_input_map { use crate as dash_sdk_bindings ; } pub mod address_output_singular { use crate as dash_sdk_bindings ; } pub mod address_output_map_optional_amount { use crate as dash_sdk_bindings ; } } pub mod witness_verification_operations { use crate as dash_sdk_bindings ; } pub mod platform_address { use crate as dash_sdk_bindings ; } pub mod witness { use crate as dash_sdk_bindings ; } pub mod fee_strategy { use crate as dash_sdk_bindings ; pub mod deduct_fee_from_inputs_and_outputs { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded-client")] pub mod orchard_address { use crate as dash_sdk_bindings ; } } # [cfg (feature = "state-transitions")] pub mod state_transition { use crate as dash_sdk_bindings ; # [cfg (feature = "state-transition-validation")] pub mod verify_identity_signed_signature { use crate as dash_sdk_bindings ; } pub mod state_transitions { use crate as dash_sdk_bindings ; pub mod identity { use crate as dash_sdk_bindings ; pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod public_key_in_creation { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; pub mod duplicated_keys_witness { use crate as dash_sdk_bindings ; } pub mod hash { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_with_private_key { use crate as dash_sdk_bindings ; } # [cfg (feature = "state-transition-signing")] pub mod from_public_key_signed_external { use crate as dash_sdk_bindings ; } pub mod validate_identity_public_keys_structure { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod duplicated_key_ids_witness { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } } pub mod identity_create_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_topup_from_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_topup_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod identity_credit_transfer_to_addresses_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_key_limits_update_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod masternode_vote_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_create_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod identity_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod common_fields { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; pub mod batch_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } # [cfg (feature = "validation")] pub mod validation { use crate as dash_sdk_bindings ; pub mod find_duplicates_by_id { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod validate_basic_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod v0 { use crate as dash_sdk_bindings ; } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } pub mod batched_transition { use crate as dash_sdk_bindings ; pub mod token_transition { use crate as dash_sdk_bindings ; } pub mod token_mint_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } } } pub mod document_base_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v2 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_index_only_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unshield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_claim_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_emergency_action_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_delete_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_replace_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition { use crate as dash_sdk_bindings ; } pub mod token_config_update_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_freeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_burn_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_burn_from_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod token_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod token_shield_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_base_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_mint_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_unfreeze_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod document_update_price_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transition_action_type { use crate as dash_sdk_bindings ; } pub mod document_create_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod document_transfer_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_set_price_for_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod v0_methods { use crate as dash_sdk_bindings ; } pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_destroy_frozen_funds_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_to_pool_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod token_direct_purchase_transition { use crate as dash_sdk_bindings ; pub mod validate_structure { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod v0 { use crate as dash_sdk_bindings ; } } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod resolvers { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } } } pub mod contract { use crate as dash_sdk_bindings ; pub mod data_contract_create_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v1 { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod data_contract_update_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod contract_user_moderation_transition { use crate as dash_sdk_bindings ; pub mod fields { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod contract_fee_claim_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod common_fields { use crate as dash_sdk_bindings ; } } pub mod address_funds { use crate as dash_sdk_bindings ; pub mod address_funding_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod state_transition_estimated_fee_validation { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod address_credit_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod address_funds_transfer_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } } pub mod shielded { use crate as dash_sdk_bindings ; pub mod shielded_transfer_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod shield_from_identity_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod fields { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_from_asset_lock_transition { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod unshield_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod token_unshield_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod identity_top_up_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } pub mod token_shielded_transfer_with_shielded_fee_transition { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod common_validation { use crate as dash_sdk_bindings ; } pub mod token_purchase_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } } pub mod shield_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } } pub mod shielded_withdrawal_transition { use crate as dash_sdk_bindings ; pub mod methods { use crate as dash_sdk_bindings ; } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; pub mod v1 { use crate as dash_sdk_bindings ; } } } } pub mod identity_create_from_shielded_pool_transition { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; pub mod state_transition_validation { use crate as dash_sdk_bindings ; } } pub mod accessors { use crate as dash_sdk_bindings ; } pub mod methods { use crate as dash_sdk_bindings ; } } } } pub mod state_transition_types { use crate as dash_sdk_bindings ; } pub mod proof_result { use crate as dash_sdk_bindings ; } pub mod traits { use crate as dash_sdk_bindings ; } pub mod errors { use crate as dash_sdk_bindings ; } pub mod serialization { use crate as dash_sdk_bindings ; } } pub mod util { use crate as dash_sdk_bindings ; pub mod json_schema { use crate as dash_sdk_bindings ; } # [cfg (feature = "cbor")] pub mod cbor_value { use crate as dash_sdk_bindings ; pub mod map { use crate as dash_sdk_bindings ; } pub mod canonical { use crate as dash_sdk_bindings ; } pub mod convert { use crate as dash_sdk_bindings ; } } pub mod is_non_zero_fibonacci_number { use crate as dash_sdk_bindings ; } pub mod vec { use crate as dash_sdk_bindings ; } pub mod json_value { use crate as dash_sdk_bindings ; pub mod insert_with_path { use crate as dash_sdk_bindings ; } pub mod remove_path { use crate as dash_sdk_bindings ; } } pub mod strings { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod json_path { use crate as dash_sdk_bindings ; } } pub mod voting { use crate as dash_sdk_bindings ; pub mod votes { use crate as dash_sdk_bindings ; pub mod resource_vote { use crate as dash_sdk_bindings ; pub mod accessors { use crate as dash_sdk_bindings ; } pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ResourceVoteV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { pub vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , pub resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { let ffi_ref = & * ffi ; dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (ffi_ref . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (ffi_ref . resource_vote_choice) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 > for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0) -> * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll : < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj . vote_poll) , resource_vote_choice : < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj . resource_vote_choice) }) } } impl Drop for dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . vote_poll) ; ferment :: unbox_any (ffi_ref . resource_vote_choice) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_ctor < > (vote_poll : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll , resource_vote_choice : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { ferment :: boxed (dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { vote_poll , resource_vote_choice }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_v0_ResourceVoteV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_get_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_vote_poll < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { (* obj) . vote_poll } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_v0_ResourceVoteV0_set_resource_vote_choice < > (obj : * const dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { (* obj) . resource_vote_choice } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_resource_vote_ResourceVote { V0 (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_resource_vote_ResourceVote) -> dpp :: voting :: votes :: resource_vote :: ResourceVote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote > for dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: resource_vote :: ResourceVote) -> * const dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (match obj { dpp :: voting :: votes :: resource_vote :: ResourceVote :: V0 (o_0) => dpp_voting_votes_resource_vote_ResourceVote :: V0 (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (dpp_voting_votes_resource_vote_ResourceVote :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_resource_vote_ResourceVote_destroy < > (ffi : * mut dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`Vote`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_votes_Vote { ResourceVote (* mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) } impl ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_from_const (ffi : * const dpp_voting_votes_Vote) -> dpp :: voting :: votes :: Vote { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_votes_Vote :: ResourceVote (o_0) => dpp :: voting :: votes :: Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote > for dpp_voting_votes_Vote { unsafe fn ffi_to_const (obj : dpp :: voting :: votes :: Vote) -> * const dpp_voting_votes_Vote { ferment :: boxed (match obj { dpp :: voting :: votes :: Vote :: ResourceVote (o_0) => dpp_voting_votes_Vote :: ResourceVote (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_votes_Vote { fn drop (& mut self) { unsafe { match self { dpp_voting_votes_Vote :: ResourceVote (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_ResourceVote_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut dpp_voting_votes_Vote { ferment :: boxed (dpp_voting_votes_Vote :: ResourceVote (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_votes_Vote_destroy < > (ffi : * mut dpp_voting_votes_Vote) { ferment :: unbox_any (ffi) ; } } pub mod vote_info_storage { use crate as dash_sdk_bindings ; pub mod contested_document_vote_poll_stored_info { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; } } pub mod contested_document_vote_poll_winner_info { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContestedDocumentVotePollWinnerInfo`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { NoWinner , WonByIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Locked } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) -> dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo > for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo) -> * const dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (match obj { dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: NoWinner => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo :: Locked => dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner => { } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_NoWinner_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: NoWinner { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_WonByIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: WonByIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_Locked_ctor () -> * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo { ferment :: boxed (dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo :: Locked { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_destroy < > (ffi : * mut dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo) { ferment :: unbox_any (ffi) ; } } } pub mod vote_polls { use crate as dash_sdk_bindings ; pub mod contested_document_resource_vote_poll { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContestedDocumentResourceVotePoll`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { pub contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub document_type_name : * mut std :: os :: raw :: c_char , pub index_name : * mut std :: os :: raw :: c_char , pub index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { let ffi_ref = & * ffi ; dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (ffi_ref . index_values) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll > for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll) -> * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . contract_id) , document_type_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . document_type_name) , index_name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . index_name) , index_values : < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj . index_values) }) } } impl Drop for dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . contract_id) ; ferment :: unbox_string (ffi_ref . document_type_name) ; ferment :: unbox_string (ffi_ref . index_name) ; ferment :: unbox_any (ffi_ref . index_values) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_ctor < > (contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_name : * mut std :: os :: raw :: c_char , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { ferment :: boxed (dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { contract_id , document_type_name , index_name , index_values }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_get_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_contract_id < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . contract_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_document_type_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . document_type_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_name < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut std :: os :: raw :: c_char { (* obj) . index_name } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll_set_index_values < > (obj : * const dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { (* obj) . index_values } } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`VotePoll`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_polls_VotePoll { ContestedDocumentResourceVotePoll (* mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_polls_VotePoll) -> dpp :: voting :: vote_polls :: VotePoll { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll > for dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_polls :: VotePoll) -> * const dpp_voting_vote_polls_VotePoll { ferment :: boxed (match obj { dpp :: voting :: vote_polls :: VotePoll :: ContestedDocumentResourceVotePoll (o_0) => dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_ContestedDocumentResourceVotePoll_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut dpp_voting_vote_polls_VotePoll { ferment :: boxed (dpp_voting_vote_polls_VotePoll :: ContestedDocumentResourceVotePoll (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_polls_VotePoll_destroy < > (ffi : * mut dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } } pub mod vote_choices { use crate as dash_sdk_bindings ; pub mod yes_no_abstain_vote_choice { use crate as dash_sdk_bindings ; } pub mod resource_vote_choice { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ResourceVoteChoice`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { TowardsIdentity (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) , Abstain , Lock } impl ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_from_const (ffi : * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (* o_0)) , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock } } } impl ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice > for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { unsafe fn ffi_to_const (obj : dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice) -> * const dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (match obj { dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: TowardsIdentity (o_0) => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (o_0)) , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Abstain => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain , dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice :: Lock => dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { fn drop (& mut self) { unsafe { match self { dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_0) => { ferment :: unbox_any (* o_0) ; } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain => { } , dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock => { } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_TowardsIdentity_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: TowardsIdentity (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Abstain_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Abstain { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_Lock_ctor () -> * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { ferment :: boxed (dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice :: Lock { }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice_destroy < > (ffi : * mut dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) { ferment :: unbox_any (ffi) ; } } } pub mod contender_structs { use crate as dash_sdk_bindings ; pub mod contender { use crate as dash_sdk_bindings ; pub mod v0 { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`ContenderWithSerializedDocumentV0`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { pub identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , pub vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { let ffi_ref = & * ffi ; dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from_opt (ffi_ref . serialized_document) , vote_tally : ferment :: from_opt_primitive (ffi_ref . vote_tally) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 > for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0) -> * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . identity_id) , serialized_document : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to_opt (obj . serialized_document) , vote_tally : ferment :: to_opt_primitive (obj . vote_tally) }) } } impl Drop for dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . identity_id) ; ferment :: unbox_any_opt (ffi_ref . serialized_document) ; ferment :: destroy_opt_primitive (ffi_ref . vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_ctor < > (identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , serialized_document : * mut crate :: fermented :: generics :: Vec_u8 , vote_tally : * mut u32) -> * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { ferment :: boxed (dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { identity_id , serialized_document , vote_tally }) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_get_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_identity_id < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . identity_id } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_serialized_document < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . serialized_document } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0_set_vote_tally < > (obj : * const dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut u32 { (* obj) . vote_tally } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`ContenderWithSerializedDocument`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { V0 (* mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) } impl ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument { let ffi_ref = & * ffi ; match ffi_ref { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument) -> * const dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (match obj { dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument :: V0 (o_0) => dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { match self { dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_V0_ctor (o_o_0 : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (dpp_voting_contender_structs_contender_ContenderWithSerializedDocument :: V0 (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy < > (ffi : * mut dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } } # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod bls { use crate as dash_sdk_bindings ; } pub mod asset_lock { use crate as dash_sdk_bindings ; pub mod reduced_asset_lock_value { use crate as dash_sdk_bindings ; } } pub mod errors { use crate as dash_sdk_bindings ; pub mod non_consensus_error { use crate as dash_sdk_bindings ; } pub mod consensus { use crate as dash_sdk_bindings ; pub mod fee { use crate as dash_sdk_bindings ; } pub mod state { use crate as dash_sdk_bindings ; pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod voting { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod data_trigger { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod state_error { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod prefunded_specialized_balances { use crate as dash_sdk_bindings ; } pub mod address_funds { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } pub mod shielded { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } } pub mod signature { use crate as dash_sdk_bindings ; pub mod signature_error { use crate as dash_sdk_bindings ; } } pub mod basic { use crate as dash_sdk_bindings ; pub mod unsupported_version_error { use crate as dash_sdk_bindings ; } pub mod json_schema_error { use crate as dash_sdk_bindings ; } pub mod contract_group { use crate as dash_sdk_bindings ; } pub mod data_contract { use crate as dash_sdk_bindings ; } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod group { use crate as dash_sdk_bindings ; } pub mod decode { use crate as dash_sdk_bindings ; } pub mod moderation_charter { use crate as dash_sdk_bindings ; } pub mod token { use crate as dash_sdk_bindings ; } pub mod unsupported_protocol_version_error { use crate as dash_sdk_bindings ; } pub mod basic_error { use crate as dash_sdk_bindings ; } pub mod state_transition { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; } pub mod document { use crate as dash_sdk_bindings ; } } } } pub mod serialization { use crate as dash_sdk_bindings ; # [cfg (feature = "serde-conversion")] pub mod json { use crate as dash_sdk_bindings ; pub mod safe_integer { use crate as dash_sdk_bindings ; } pub mod safe_integer_map { use crate as dash_sdk_bindings ; } } pub mod serde_bytes { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde-conversion")] pub mod dashcore { use crate as dash_sdk_bindings ; # [cfg (feature = "bls-signatures")] pub mod bls_pubkey { use crate as dash_sdk_bindings ; } } # [cfg (feature = "serde-conversion")] pub mod serde_bytes_var { use crate as dash_sdk_bindings ; } } pub mod prelude { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`CoreBlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_CoreBlockHeight (u32) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_CoreBlockHeight) -> dpp :: prelude :: CoreBlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight > for dpp_prelude_CoreBlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: CoreBlockHeight) -> * const dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (obj)) } } impl Drop for dpp_prelude_CoreBlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_ctor < > (o_0 : u32) -> * mut dpp_prelude_CoreBlockHeight { ferment :: boxed (dpp_prelude_CoreBlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_destroy < > (ffi : * mut dpp_prelude_CoreBlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_get_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_CoreBlockHeight_set_0 < > (obj : * const dpp_prelude_CoreBlockHeight) -> u32 { (* obj) . 0 } # [doc = "FFI-representation of the [`TimestampMillis`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_TimestampMillis (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_from_const (ffi : * const dpp_prelude_TimestampMillis) -> dpp :: prelude :: TimestampMillis { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis > for dpp_prelude_TimestampMillis { unsafe fn ffi_to_const (obj : dpp :: prelude :: TimestampMillis) -> * const dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (obj)) } } impl Drop for dpp_prelude_TimestampMillis { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_ctor < > (o_0 : u64) -> * mut dpp_prelude_TimestampMillis { ferment :: boxed (dpp_prelude_TimestampMillis (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_destroy < > (ffi : * mut dpp_prelude_TimestampMillis) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_get_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_TimestampMillis_set_0 < > (obj : * const dpp_prelude_TimestampMillis) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`BlockHeight`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_BlockHeight (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_from_const (ffi : * const dpp_prelude_BlockHeight) -> dpp :: prelude :: BlockHeight { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight > for dpp_prelude_BlockHeight { unsafe fn ffi_to_const (obj : dpp :: prelude :: BlockHeight) -> * const dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (obj)) } } impl Drop for dpp_prelude_BlockHeight { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_ctor < > (o_0 : u64) -> * mut dpp_prelude_BlockHeight { ferment :: boxed (dpp_prelude_BlockHeight (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_destroy < > (ffi : * mut dpp_prelude_BlockHeight) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_get_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_BlockHeight_set_0 < > (obj : * const dpp_prelude_BlockHeight) -> u64 { (* obj) . 0 } # [doc = "FFI-representation of the [`Revision`]"] # [repr (C)] # [derive (Clone)] pub struct dpp_prelude_Revision (u64) ; impl ferment :: FFIConversionFrom < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_from_const (ffi : * const dpp_prelude_Revision) -> dpp :: prelude :: Revision { let ffi_ref = & * ffi ; ffi_ref . 0 } } impl ferment :: FFIConversionTo < dpp :: prelude :: Revision > for dpp_prelude_Revision { unsafe fn ffi_to_const (obj : dpp :: prelude :: Revision) -> * const dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (obj)) } } impl Drop for dpp_prelude_Revision { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; } } } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_ctor < > (o_0 : u64) -> * mut dpp_prelude_Revision { ferment :: boxed (dpp_prelude_Revision (o_0)) } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_destroy < > (ffi : * mut dpp_prelude_Revision) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_get_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dpp_prelude_Revision_set_0 < > (obj : * const dpp_prelude_Revision) -> u64 { (* obj) . 0 } } pub mod fee { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; # [cfg (feature = "fee-distribution")] pub mod distribution { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } # [cfg (feature = "fee-distribution")] pub mod fee_result { use crate as dash_sdk_bindings ; pub mod refunds { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } } pub mod default_costs { use crate as dash_sdk_bindings ; } } } pub mod dash_sdk { use crate as dash_sdk_bindings ; pub mod internal_cache { use crate as dash_sdk_bindings ; } pub mod platform { use crate as dash_sdk_bindings ; pub mod dpns_usernames { use crate as dash_sdk_bindings ; pub mod queries { use crate as dash_sdk_bindings ; } pub mod contested_queries { use crate as dash_sdk_bindings ; } } pub mod identities_contract_keys_query { use crate as dash_sdk_bindings ; } pub mod documents { use crate as dash_sdk_bindings ; pub mod contest_fund { use crate as dash_sdk_bindings ; } pub mod transitions { use crate as dash_sdk_bindings ; pub mod delete { use crate as dash_sdk_bindings ; } } } pub mod types { use crate as dash_sdk_bindings ; pub mod epoch { use crate as dash_sdk_bindings ; } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`PublicKeyHash`]"] # [repr (C)] # [derive (Clone)] pub struct dash_sdk_platform_types_identity_PublicKeyHash (* mut crate :: fermented :: generics :: Arr_u8_20) ; impl ferment :: FFIConversionFrom < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_from_const (ffi : * const dash_sdk_platform_types_identity_PublicKeyHash) -> dash_sdk :: platform :: types :: identity :: PublicKeyHash { let ffi_ref = & * ffi ; dash_sdk :: platform :: types :: identity :: PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < dash_sdk :: platform :: types :: identity :: PublicKeyHash > for dash_sdk_platform_types_identity_PublicKeyHash { unsafe fn ffi_to_const (obj : dash_sdk :: platform :: types :: identity :: PublicKeyHash) -> * const dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj . 0))) } } impl Drop for dash_sdk_platform_types_identity_PublicKeyHash { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_ctor < > (o_0 : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut dash_sdk_platform_types_identity_PublicKeyHash { ferment :: boxed (dash_sdk_platform_types_identity_PublicKeyHash (o_0)) } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_destroy < > (ffi : * mut dash_sdk_platform_types_identity_PublicKeyHash) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_get_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn dash_sdk_platform_types_identity_PublicKeyHash_set_0 < > (obj : * const dash_sdk_platform_types_identity_PublicKeyHash) -> * mut crate :: fermented :: generics :: Arr_u8_20 { (* obj) . 0 } } } pub mod contract_moderation { use crate as dash_sdk_bindings ; } pub mod address_sync { use crate as dash_sdk_bindings ; } pub mod moderation_charters { use crate as dash_sdk_bindings ; pub mod requests { use crate as dash_sdk_bindings ; } pub mod readers { use crate as dash_sdk_bindings ; } pub mod team { use crate as dash_sdk_bindings ; } } pub mod dashpay { use crate as dash_sdk_bindings ; pub mod contact_request { use crate as dash_sdk_bindings ; } pub mod contact_request_queries { use crate as dash_sdk_bindings ; } } pub mod trunk_branch_sync { use crate as dash_sdk_bindings ; pub mod tracker { use crate as dash_sdk_bindings ; } } pub mod tokens { use crate as dash_sdk_bindings ; pub mod transitions { use crate as dash_sdk_bindings ; pub mod burn { use crate as dash_sdk_bindings ; } } pub mod builders { use crate as dash_sdk_bindings ; } } # [cfg (feature = "shielded")] pub mod shielded { use crate as dash_sdk_bindings ; pub mod notes_sync { use crate as dash_sdk_bindings ; pub mod sync_shielded_notes { use crate as dash_sdk_bindings ; } } } pub mod encrypted_for { use crate as dash_sdk_bindings ; } pub mod transition { use crate as dash_sdk_bindings ; } } pub mod mock { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } } pub mod sdk { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod test { use crate as dash_sdk_bindings ; } } pub mod sync { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod core { use crate as dash_sdk_bindings ; # [cfg (feature = "mocks")] pub mod dash_core_client { use crate as dash_sdk_bindings ; } pub mod transaction { use crate as dash_sdk_bindings ; } } } pub mod platform_mobile { use crate as dash_sdk_bindings ; pub mod fetch_document { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_document::deserialize_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_deserialize_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: deserialize_document_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type)) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`StartPoint`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_fetch_document_StartPoint { StartAfter (* mut crate :: fermented :: generics :: Vec_u8) , StartAt (* mut crate :: fermented :: generics :: Vec_u8) } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_document_StartPoint) -> platform_mobile :: fetch_document :: StartPoint { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => platform_mobile :: fetch_document :: StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_document :: StartPoint > for platform_mobile_fetch_document_StartPoint { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_document :: StartPoint) -> * const platform_mobile_fetch_document_StartPoint { ferment :: boxed (match obj { platform_mobile :: fetch_document :: StartPoint :: StartAfter (o_0) => platform_mobile_fetch_document_StartPoint :: StartAfter (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , platform_mobile :: fetch_document :: StartPoint :: StartAt (o_0) => platform_mobile_fetch_document_StartPoint :: StartAt (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_fetch_document_StartPoint { fn drop (& mut self) { unsafe { match self { platform_mobile_fetch_document_StartPoint :: StartAfter (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_fetch_document_StartPoint :: StartAt (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAfter_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAfter (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_StartAt_ctor (o_o_0 : * mut crate :: fermented :: generics :: Vec_u8) -> * mut platform_mobile_fetch_document_StartPoint { ferment :: boxed (platform_mobile_fetch_document_StartPoint :: StartAt (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_StartPoint_destroy < > (ffi : * mut platform_mobile_fetch_document_StartPoint) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::fetch_documents_with_query_and_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_fetch_documents_with_query_and_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , where_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause , order_clauses : * mut crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause , limit : u32 , start : * mut crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String { let obj = platform_mobile :: fetch_document :: fetch_documents_with_query_and_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: generics :: Vec_drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > >> :: ffi_from (where_clauses) , < crate :: fermented :: generics :: Vec_drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > >> :: ffi_from (order_clauses) , limit , < crate :: fermented :: types :: platform_mobile :: fetch_document :: platform_mobile_fetch_document_StartPoint as ferment :: FFIConversionFrom < platform_mobile :: fetch_document :: StartPoint >> :: ffi_from_opt (start)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_document::document_to_string`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_document_document_to_string (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: fetch_document :: document_to_string (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } } pub mod data_contracts { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::data_contracts::DataContractFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_clone (value : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI { let obj = platform_mobile :: data_contracts :: DataContractFFI_clone (< crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::data_contracts::fetch_data_contract`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_fetch_data_contract (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { let obj = platform_mobile :: data_contracts :: fetch_data_contract (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String as ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`DataContractFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_data_contracts_DataContractFFI { pub id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub doc_types : * mut crate :: fermented :: generics :: Vec_String , pub version : u32 , pub requires_identity_encryption_bounded_key : bool , pub requires_identity_decryption_bounded_key : bool } impl ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_data_contracts_DataContractFFI) -> platform_mobile :: data_contracts :: DataContractFFI { let ffi_ref = & * ffi ; platform_mobile :: data_contracts :: DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (ffi_ref . doc_types) , version : ffi_ref . version , requires_identity_encryption_bounded_key : ffi_ref . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : ffi_ref . requires_identity_decryption_bounded_key } } } impl ferment :: FFIConversionTo < platform_mobile :: data_contracts :: DataContractFFI > for platform_mobile_data_contracts_DataContractFFI { unsafe fn ffi_to_const (obj : platform_mobile :: data_contracts :: DataContractFFI) -> * const platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . id) , owner_id : < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . owner_id) , doc_types : < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj . doc_types) , version : obj . version , requires_identity_encryption_bounded_key : obj . requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key : obj . requires_identity_decryption_bounded_key }) } } impl Drop for platform_mobile_data_contracts_DataContractFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . id) ; ferment :: unbox_any (ffi_ref . owner_id) ; ferment :: unbox_any (ffi_ref . doc_types) ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_ctor < > (id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , owner_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , doc_types : * mut crate :: fermented :: generics :: Vec_String , version : u32 , requires_identity_encryption_bounded_key : bool , requires_identity_decryption_bounded_key : bool) -> * mut platform_mobile_data_contracts_DataContractFFI { ferment :: boxed (platform_mobile_data_contracts_DataContractFFI { id , owner_id , doc_types , version , requires_identity_encryption_bounded_key , requires_identity_decryption_bounded_key }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_destroy < > (ffi : * mut platform_mobile_data_contracts_DataContractFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_get_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_owner_id < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_doc_types < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> * mut crate :: fermented :: generics :: Vec_String { (* obj) . doc_types } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_version < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> u32 { (* obj) . version } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_encryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_encryption_bounded_key } # [no_mangle] pub unsafe extern "C" fn platform_mobile_data_contracts_DataContractFFI_set_requires_identity_decryption_bounded_key < > (obj : * const platform_mobile_data_contracts_DataContractFFI) -> bool { (* obj) . requires_identity_decryption_bounded_key } } pub mod state_transition { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::state_transition::deserialize_state_transition`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_deserialize_state_transition (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { let obj = platform_mobile :: state_transition :: deserialize_state_transition (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::state_transition::identity_update_public_keys_to_add`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_identity_update_public_keys_to_add (bytes : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { let obj = platform_mobile :: state_transition :: identity_update_public_keys_to_add (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes)) ; < crate :: fermented :: generics :: Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String as ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`StateTransitionInfo`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_state_transition_StateTransitionInfo { pub transition_type : u8 , pub name : * mut std :: os :: raw :: c_char , pub owner_id : * mut crate :: fermented :: generics :: Vec_u8 , pub revision : u64 , pub identity_nonce : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_from_const (ffi : * const platform_mobile_state_transition_StateTransitionInfo) -> platform_mobile :: state_transition :: StateTransitionInfo { let ffi_ref = & * ffi ; platform_mobile :: state_transition :: StateTransitionInfo { transition_type : ffi_ref . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (ffi_ref . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . owner_id) , revision : ffi_ref . revision , identity_nonce : ffi_ref . identity_nonce } } } impl ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo > for platform_mobile_state_transition_StateTransitionInfo { unsafe fn ffi_to_const (obj : platform_mobile :: state_transition :: StateTransitionInfo) -> * const platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type : obj . transition_type , name : < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj . name) , owner_id : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . owner_id) , revision : obj . revision , identity_nonce : obj . identity_nonce }) } } impl Drop for platform_mobile_state_transition_StateTransitionInfo { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_string (ffi_ref . name) ; ferment :: unbox_any (ffi_ref . owner_id) ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_ctor < > (transition_type : u8 , name : * mut std :: os :: raw :: c_char , owner_id : * mut crate :: fermented :: generics :: Vec_u8 , revision : u64 , identity_nonce : u64) -> * mut platform_mobile_state_transition_StateTransitionInfo { ferment :: boxed (platform_mobile_state_transition_StateTransitionInfo { transition_type , name , owner_id , revision , identity_nonce }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_destroy < > (ffi : * mut platform_mobile_state_transition_StateTransitionInfo) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_get_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_transition_type < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u8 { (* obj) . transition_type } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_name < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut std :: os :: raw :: c_char { (* obj) . name } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_owner_id < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . owner_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_revision < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . revision } # [no_mangle] pub unsafe extern "C" fn platform_mobile_state_transition_StateTransitionInfo_set_identity_nonce < > (obj : * const platform_mobile_state_transition_StateTransitionInfo) -> u64 { (* obj) . identity_nonce } } pub mod put { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::put::replace_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_replace_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: replace_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , signer_context : usize , signer_callback : u64 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , signer_context , signer_callback , is_testnet) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`ChainAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_ChainAssetLockProofFFI { pub core_chain_locked_height : u32 , pub out_point : * mut platform_mobile :: custom :: OutPoint } impl ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_ChainAssetLockProofFFI) -> platform_mobile :: put :: ChainAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: ChainAssetLockProofFFI { core_chain_locked_height : ffi_ref . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (ffi_ref . out_point) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI > for platform_mobile_put_ChainAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: ChainAssetLockProofFFI) -> * const platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height : obj . core_chain_locked_height , out_point : < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj . out_point) }) } } impl Drop for platform_mobile_put_ChainAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ferment :: unbox_any (ffi_ref . out_point) ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_ctor < > (core_chain_locked_height : u32 , out_point : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile_put_ChainAssetLockProofFFI { ferment :: boxed (platform_mobile_put_ChainAssetLockProofFFI { core_chain_locked_height , out_point }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_ChainAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_get_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_core_chain_locked_height < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> u32 { (* obj) . core_chain_locked_height } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_set_out_point < > (obj : * const platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile :: custom :: OutPoint { (* obj) . out_point } # [doc = "FFI-representation of the [`platform_mobile::put::topup_identity_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_topup_identity_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , asset_lock_proof : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI , asset_lock_proof_private_key : * mut crate :: fermented :: generics :: Vec_u8 , is_testnet : bool) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: put :: topup_identity_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_AssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI >> :: ffi_from (asset_lock_proof) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (asset_lock_proof_private_key) , is_testnet) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::put_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type_str : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight , core_block_height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: put :: put_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_str) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (block_height) , < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (core_block_height) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`OutPointFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_OutPointFFI { pub txid : * mut crate :: fermented :: generics :: Arr_u8_32 , pub vout : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_OutPointFFI) -> platform_mobile :: put :: OutPointFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (ffi_ref . txid) , vout : ffi_ref . vout } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: OutPointFFI > for platform_mobile_put_OutPointFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: OutPointFFI) -> * const platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid : < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj . txid) , vout : obj . vout }) } } impl Drop for platform_mobile_put_OutPointFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . txid) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_ctor < > (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , vout : u32) -> * mut platform_mobile_put_OutPointFFI { ferment :: boxed (platform_mobile_put_OutPointFFI { txid , vout }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_destroy < > (ffi : * mut platform_mobile_put_OutPointFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_get_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_txid < > (obj : * const platform_mobile_put_OutPointFFI) -> * mut crate :: fermented :: generics :: Arr_u8_32 { (* obj) . txid } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_set_vout < > (obj : * const platform_mobile_put_OutPointFFI) -> u32 { (* obj) . vout } # [doc = "FFI-representation of the [`platform_mobile::put::ChainAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_ChainAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI { let obj = platform_mobile :: put :: ChainAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::InstantAssetLockProofFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_clone (a : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI { let obj = platform_mobile :: put :: InstantAssetLockProofFFI_clone (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (a)) ; < crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`# doc = \"FFI-representation of the [`AssetLockProofFFI`]\"`]"] # [repr (C)] # [derive (Clone)] # [non_exhaustive] pub enum platform_mobile_put_AssetLockProofFFI { Instant (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) , Chain (* mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) } impl ferment :: FFIConversionFrom < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_AssetLockProofFFI) -> platform_mobile :: put :: AssetLockProofFFI { let ffi_ref = & * ffi ; match ffi_ref { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_from (* o_0)) , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => platform_mobile :: put :: AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionFrom < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_from (* o_0)) } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: AssetLockProofFFI > for platform_mobile_put_AssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: AssetLockProofFFI) -> * const platform_mobile_put_AssetLockProofFFI { ferment :: boxed (match obj { platform_mobile :: put :: AssetLockProofFFI :: Instant (o_0) => platform_mobile_put_AssetLockProofFFI :: Instant (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI >> :: ffi_to (o_0)) , platform_mobile :: put :: AssetLockProofFFI :: Chain (o_0) => platform_mobile_put_AssetLockProofFFI :: Chain (< crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI as ferment :: FFIConversionTo < platform_mobile :: put :: ChainAssetLockProofFFI >> :: ffi_to (o_0)) , _ => unreachable ! ("This is unreachable") }) } } impl Drop for platform_mobile_put_AssetLockProofFFI { fn drop (& mut self) { unsafe { match self { platform_mobile_put_AssetLockProofFFI :: Instant (o_0) => { ferment :: unbox_any (* o_0) ; } , platform_mobile_put_AssetLockProofFFI :: Chain (o_0) => { ferment :: unbox_any (* o_0) ; } , _ => unreachable ! ("This is unreachable") } ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Instant_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_InstantAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Instant (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_Chain_ctor (o_o_0 : * mut crate :: fermented :: types :: platform_mobile :: put :: platform_mobile_put_ChainAssetLockProofFFI) -> * mut platform_mobile_put_AssetLockProofFFI { ferment :: boxed (platform_mobile_put_AssetLockProofFFI :: Chain (o_o_0)) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_AssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_AssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [doc = "FFI-representation of the [`InstantAssetLockProofFFI`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_put_InstantAssetLockProofFFI { pub instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , pub transaction : * mut crate :: fermented :: generics :: Vec_u8 , pub output_index : u32 } impl ferment :: FFIConversionFrom < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_from_const (ffi : * const platform_mobile_put_InstantAssetLockProofFFI) -> platform_mobile :: put :: InstantAssetLockProofFFI { let ffi_ref = & * ffi ; platform_mobile :: put :: InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (ffi_ref . transaction) , output_index : ffi_ref . output_index } } } impl ferment :: FFIConversionTo < platform_mobile :: put :: InstantAssetLockProofFFI > for platform_mobile_put_InstantAssetLockProofFFI { unsafe fn ffi_to_const (obj : platform_mobile :: put :: InstantAssetLockProofFFI) -> * const platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . instant_lock) , transaction : < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj . transaction) , output_index : obj . output_index }) } } impl Drop for platform_mobile_put_InstantAssetLockProofFFI { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . instant_lock) ; ferment :: unbox_any (ffi_ref . transaction) ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_ctor < > (instant_lock : * mut crate :: fermented :: generics :: Vec_u8 , transaction : * mut crate :: fermented :: generics :: Vec_u8 , output_index : u32) -> * mut platform_mobile_put_InstantAssetLockProofFFI { ferment :: boxed (platform_mobile_put_InstantAssetLockProofFFI { instant_lock , transaction , output_index }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_destroy < > (ffi : * mut platform_mobile_put_InstantAssetLockProofFFI) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_get_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_instant_lock < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . instant_lock } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_transaction < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> * mut crate :: fermented :: generics :: Vec_u8 { (* obj) . transaction } # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_InstantAssetLockProofFFI_set_output_index < > (obj : * const platform_mobile_put_InstantAssetLockProofFFI) -> u32 { (* obj) . output_index } # [doc = "FFI-representation of the [`platform_mobile::put::put_identity_update_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_put_identity_update_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , master_public_key_id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , add_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , disable_public_keys : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: put :: put_identity_update_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (master_public_key_id) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (add_public_keys) , < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > >> :: ffi_from (disable_public_keys) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::put::OutPointFFI_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_put_OutPointFFI_clone (a : * mut platform_mobile :: custom :: OutPoint) -> * mut platform_mobile :: custom :: OutPoint { let obj = platform_mobile :: put :: OutPointFFI_clone (< platform_mobile :: custom :: OutPoint as ferment :: FFIConversionFrom < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_from (a)) ; < platform_mobile :: custom :: OutPoint as ferment :: FFIConversionTo < dashcore :: blockdata :: transaction :: outpoint :: OutPoint >> :: ffi_to (obj) } } pub mod clone { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::clone::WhereClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause { let obj = platform_mobile :: clone :: WhereClause_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocument_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocument_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { let obj = platform_mobile :: clone :: ContenderWithSerializedDocument_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Hash256_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Hash256_clone (o : * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Hash256 { let obj = platform_mobile :: clone :: Hash256_clone (< crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionFrom < platform_value :: Hash256 >> :: ffi_from (o)) ; < crate :: fermented :: types :: platform_value :: platform_value_Hash256 as ferment :: FFIConversionTo < platform_value :: Hash256 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis { let obj = platform_mobile :: clone :: TimestampMillis_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedDocumentResourceVotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedDocumentResourceVotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll { let obj = platform_mobile :: clone :: ContestedDocumentResourceVotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: dpp_voting_vote_polls_contested_document_resource_vote_poll_ContestedDocumentResourceVotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: contested_document_resource_vote_poll :: ContestedDocumentResourceVotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_32_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_32_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Arr_u8_32 { let obj = platform_mobile :: clone :: Arr_u8_32_clone (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionTo < [u8 ; 32] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::CoreBlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_CoreBlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight { let obj = platform_mobile :: clone :: CoreBlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: CoreBlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_CoreBlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: CoreBlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Contenders_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Contenders_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders { let obj = platform_mobile :: clone :: Contenders_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_36_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_36_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_36) -> * mut crate :: fermented :: generics :: Arr_u8_36 { let obj = platform_mobile :: clone :: Arr_u8_36_clone (< crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionFrom < [u8 ; 36] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_36 as ferment :: FFIConversionTo < [u8 ; 36] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::prelude_TimestampMillis_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_prelude_TimestampMillis_clone (time : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis { let obj = platform_mobile :: clone :: prelude_TimestampMillis_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionFrom < dpp :: prelude :: TimestampMillis >> :: ffi_from (time)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis as ferment :: FFIConversionTo < dpp :: prelude :: TimestampMillis >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::DocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_DocumentV0_clone (document : * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0) -> * mut crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 { let obj = platform_mobile :: clone :: DocumentV0_clone (< crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionFrom < dpp :: document :: v0 :: DocumentV0 >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: v0 :: dpp_document_v0_DocumentV0 as ferment :: FFIConversionTo < dpp :: document :: v0 :: DocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_u8_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_u8_clone (vec : * mut crate :: fermented :: generics :: Vec_u8) -> * mut crate :: fermented :: generics :: Vec_u8 { let obj = platform_mobile :: clone :: Vec_u8_clone (< crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (vec)) ; < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionTo < Vec < u8 > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContenderWithSerializedDocumentV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContenderWithSerializedDocumentV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0) -> * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 { let obj = platform_mobile :: clone :: ContenderWithSerializedDocumentV0_clone (< crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: v0 :: dpp_voting_contender_structs_contender_v0_ContenderWithSerializedDocumentV0 as ferment :: FFIConversionTo < dpp :: voting :: contender_structs :: contender :: v0 :: ContenderWithSerializedDocumentV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (o : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: std_collections_BTreeSet_drive_proof_verifier_types_Voter_clone (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (o)) ; < crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteV0_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 { let obj = platform_mobile :: clone :: ResourceVoteV0_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: v0 :: dpp_voting_votes_resource_vote_v0_ResourceVoteV0 as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: v0 :: ResourceVoteV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResources_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResources_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources { let obj = platform_mobile :: clone :: ContestedResources_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::std_collections_Map_keys_String_values_platform_value_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_std_collections_Map_keys_String_values_platform_value_Value_clone (map : * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value { let obj = platform_mobile :: clone :: std_collections_Map_keys_String_values_platform_value_Value_clone (< crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_from (map)) ; < crate :: fermented :: generics :: std_collections_Map_keys_String_values_platform_value_Value as ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voter_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voter_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter { let obj = platform_mobile :: clone :: Voter_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::WhereOperator_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_WhereOperator_clone (o : * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator) -> * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator { let obj = platform_mobile :: clone :: WhereOperator_clone (< crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionFrom < drive :: query :: conditions :: WhereOperator >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereOperator as ferment :: FFIConversionTo < drive :: query :: conditions :: WhereOperator >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (o : * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_clone (< crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_from (o)) ; < crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote { let obj = platform_mobile :: clone :: ResourceVote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BinaryData_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BinaryData_clone (data : * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData) -> * mut crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData { let obj = platform_mobile :: clone :: BinaryData_clone (< crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionFrom < platform_value :: types :: binary_data :: BinaryData >> :: ffi_from (data)) ; < crate :: fermented :: types :: platform_value :: types :: binary_data :: platform_value_types_binary_data_BinaryData as ferment :: FFIConversionTo < platform_value :: types :: binary_data :: BinaryData >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContractBounds_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContractBounds_clone (contract_bounds : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds { let obj = platform_mobile :: clone :: ContractBounds_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_from (contract_bounds)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: contract_bounds :: dpp_identity_identity_public_key_contract_bounds_ContractBounds as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: contract_bounds :: ContractBounds >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vec_Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vec_Value_clone (value_vec : * mut crate :: fermented :: generics :: Vec_platform_value_Value) -> * mut crate :: fermented :: generics :: Vec_platform_value_Value { let obj = platform_mobile :: clone :: Vec_Value_clone (< crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (value_vec)) ; < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionTo < Vec < platform_value :: Value > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::OrderClause_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_OrderClause_clone (o : * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause { let obj = platform_mobile :: clone :: OrderClause_clone (< crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionFrom < drive :: query :: ordering :: OrderClause >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause as ferment :: FFIConversionTo < drive :: query :: ordering :: OrderClause >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePollsGroupedByTimestamp_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePollsGroupedByTimestamp_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp { let obj = platform_mobile :: clone :: VotePollsGroupedByTimestamp_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::StateTransitionInfo_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_StateTransitionInfo_clone (info : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo) -> * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo { let obj = platform_mobile :: clone :: StateTransitionInfo_clone (< crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionTo < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Document_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Document_clone (document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document { let obj = platform_mobile :: clone :: Document_clone (< crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document)) ; < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionTo < dpp :: document :: Document >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Revision_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Revision_clone (revision : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision { let obj = platform_mobile :: clone :: Revision_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionFrom < dpp :: prelude :: Revision >> :: ffi_from (revision)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_Revision as ferment :: FFIConversionTo < dpp :: prelude :: Revision >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Vote_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Vote_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote) -> * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote { let obj = platform_mobile :: clone :: Vote_clone (< crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionTo < dpp :: voting :: votes :: Vote >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ContestedResource_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ContestedResource_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource { let obj = platform_mobile :: clone :: ContestedResource_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVoteChoice_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVoteChoice_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice { let obj = platform_mobile :: clone :: ResourceVoteChoice_clone (< crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionFrom < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_choices :: resource_vote_choice :: dpp_voting_vote_choices_resource_vote_choice_ResourceVoteChoice as ferment :: FFIConversionTo < dpp :: voting :: vote_choices :: resource_vote_choice :: ResourceVoteChoice >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::VotePoll_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_VotePoll_clone (o : * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll { let obj = platform_mobile :: clone :: VotePoll_clone (< crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_from (o)) ; < crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < dpp :: voting :: vote_polls :: VotePoll >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ResourceVotesByIdentity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ResourceVotesByIdentity_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity { let obj = platform_mobile :: clone :: ResourceVotesByIdentity_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityPublicKeyV1_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityPublicKeyV1_clone (public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 { let obj = platform_mobile :: clone :: IdentityPublicKeyV1_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_from (public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v1 :: dpp_identity_identity_public_key_v1_IdentityPublicKeyV1 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v1 :: IdentityPublicKeyV1 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::KeyID_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_KeyID_clone (id : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID { let obj = platform_mobile :: clone :: KeyID_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::IdentityKeyRemainingBudget_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_IdentityKeyRemainingBudget_clone (info : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget { let obj = platform_mobile :: clone :: IdentityKeyRemainingBudget_clone (< crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (info)) ; < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::BlockHeight_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_BlockHeight_clone (height : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight) -> * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight { let obj = platform_mobile :: clone :: BlockHeight_clone (< crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionFrom < dpp :: prelude :: BlockHeight >> :: ffi_from (height)) ; < crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_BlockHeight as ferment :: FFIConversionTo < dpp :: prelude :: BlockHeight >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Credits_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Credits_clone (credits : * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits) -> * mut crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits { let obj = platform_mobile :: clone :: Credits_clone (< crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionFrom < dpp :: balances :: credits :: Credits >> :: ffi_from (credits)) ; < crate :: fermented :: types :: dpp :: balances :: credits :: dpp_balances_credits_Credits as ferment :: FFIConversionTo < dpp :: balances :: credits :: Credits >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Value_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Value_clone (value : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { let obj = platform_mobile :: clone :: Value_clone (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (value)) ; < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Arr_u8_20_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Arr_u8_20_clone (slice : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Arr_u8_20 { let obj = platform_mobile :: clone :: Arr_u8_20_clone (< crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (slice)) ; < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionTo < [u8 ; 20] >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::Voters_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_Voters_clone (o : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters { let obj = platform_mobile :: clone :: Voters_clone (< crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters >> :: ffi_from (o)) ; < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voters as ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::clone::ValueMap_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_clone_ValueMap_clone (value_map : * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap) -> * mut crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap { let obj = platform_mobile :: clone :: ValueMap_clone (< crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionFrom < platform_value :: value_map :: ValueMap >> :: ffi_from (value_map)) ; < crate :: fermented :: types :: platform_value :: value_map :: platform_value_value_map_ValueMap as ferment :: FFIConversionTo < platform_value :: value_map :: ValueMap >> :: ffi_to (obj) } } pub mod identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::identity::Identifier_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identifier_clone (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { let obj = platform_mobile :: identity :: Identifier_clone (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityV0_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0) -> * mut crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 { let obj = platform_mobile :: identity :: IdentityV0_clone (< crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionFrom < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: v0 :: dpp_identity_v0_IdentityV0 as ferment :: FFIConversionTo < dpp :: identity :: v0 :: IdentityV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::Identity_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_Identity_clone (identity : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: Identity_clone (< crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (identity)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKeyV0_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKeyV0_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 { let obj = platform_mobile :: identity :: IdentityPublicKeyV0_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: v0 :: dpp_identity_identity_public_key_v0_IdentityPublicKeyV0 as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: v0 :: IdentityPublicKeyV0 >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_IdentityPublicKey_clone (identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: IdentityPublicKey_clone (< crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key)) ; < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (public_keys : * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { let obj = platform_mobile :: identity :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_clone (< crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (public_keys)) ; < crate :: fermented :: generics :: std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::create_basic_identity`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_create_basic_identity (id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: create_basic_identity (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (id)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity_contract_bounds`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity_contract_bounds (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity_contract_bounds (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (contract_identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::identity::get_identity2`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_identity_get_identity2 (identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity { let obj = platform_mobile :: identity :: get_identity2 (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionTo < dpp :: identity :: identity :: Identity >> :: ffi_to (obj) } } pub mod sdk { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk (quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk (quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_context`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_context (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool , connect_timeout : usize , timeout : usize , retries : usize) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_with_context (context_provider_context , quorum_public_key_callback , data_contract_callback , is_testnet , connect_timeout , timeout , retries) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_with_network`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_with_network (context_provider_context : usize , quorum_public_key_callback : u64 , data_contract_callback : u64 , network : * mut std :: os :: raw :: c_char , endpoints : * mut crate :: fermented :: generics :: Vec_String , connect_timeout : usize , timeout : usize , retries : usize) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String { let obj = platform_mobile :: sdk :: create_dash_sdk_with_network (context_provider_context , quorum_public_key_callback , data_contract_callback , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (network) , < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionFrom < Vec < String > >> :: ffi_from (endpoints) , connect_timeout , timeout , retries) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_sdk_DashSdk_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::get_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_get_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: get_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::create_dash_sdk_using_single_evonode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_create_dash_sdk_using_single_evonode (evonode : * mut std :: os :: raw :: c_char , quorum_public_key_callback : u64 , data_contract_callback : u64 , is_testnet : bool) -> * mut platform_mobile :: sdk :: DashSdk { let obj = platform_mobile :: sdk :: create_dash_sdk_using_single_evonode (< std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (evonode) , quorum_public_key_callback , data_contract_callback , is_testnet) ; ferment :: boxed (obj) } # [doc = "FFI-representation of the [`platform_mobile::sdk::destroy_dash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_destroy_dash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) { let obj = platform_mobile :: sdk :: destroy_dash_sdk (rust_sdk) ; ; } # [doc = "FFI-representation of the [`platform_mobile::sdk::refresh_protocol_version_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_sdk_refresh_protocol_version_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: sdk :: refresh_protocol_version_with_sdk (rust_sdk) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod fetch_identity { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_balance_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_balance_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_balance_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_key_remaining_budget_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_key_remaining_budget_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_id : u32) -> * mut crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_key_remaining_budget_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , key_id) ; < crate :: fermented :: generics :: Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_with_keyhash_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_with_keyhash_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , key_hash : * mut crate :: fermented :: generics :: Arr_u8_20) -> * mut crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_with_keyhash_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_20 as ferment :: FFIConversionFrom < [u8 ; 20] >> :: ffi_from (key_hash)) ; < crate :: fermented :: generics :: Result_ok_dpp_identity_identity_Identity_err_String as ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::fetch_identity::fetch_identity_keys_remaining_budgets_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identifier : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , key_ids : * mut crate :: fermented :: generics :: Vec_u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { let obj = platform_mobile :: fetch_identity :: fetch_identity_keys_remaining_budgets_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identifier) , < crate :: fermented :: generics :: Vec_u32 as ferment :: FFIConversionFrom < Vec < u32 > >> :: ffi_from (key_ids)) ; < crate :: fermented :: generics :: Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String as ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`IdentityKeyRemainingBudget`]"] # [repr (C)] # [derive (Clone)] pub struct platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub key_id : u32 , pub has_remaining_budget : bool , pub remaining_budget : u64 } impl ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { let ffi_ref = & * ffi ; platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget { key_id : ffi_ref . key_id , has_remaining_budget : ffi_ref . has_remaining_budget , remaining_budget : ffi_ref . remaining_budget } } } impl ferment :: FFIConversionTo < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget) -> * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id : obj . key_id , has_remaining_budget : obj . has_remaining_budget , remaining_budget : obj . remaining_budget }) } } impl Drop for platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { let ffi_ref = self ; ; ; ; } } } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor < > (key_id : u32 , has_remaining_budget : bool , remaining_budget : u64) -> * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (platform_mobile_fetch_identity_IdentityKeyRemainingBudget { key_id , has_remaining_budget , remaining_budget }) } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy < > (ffi : * mut platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_get_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_key_id < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u32 { (* obj) . key_id } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_has_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> bool { (* obj) . has_remaining_budget } # [no_mangle] pub unsafe extern "C" fn platform_mobile_fetch_identity_IdentityKeyRemainingBudget_set_remaining_budget < > (obj : * const platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> u64 { (* obj) . remaining_budget } } pub mod core { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , txid : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction_sdk (rust_sdk , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::core::get_transaction`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_core_get_transaction (txid : * mut crate :: fermented :: generics :: Arr_u8_32 , quorum_public_key_callback : u64 , data_contract_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: core :: get_transaction (< crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (txid) , quorum_public_key_callback , data_contract_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod key_wallet { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_legacy_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_legacy_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_legacy_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_encryption_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_encryption_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , contract_id : * mut crate :: fermented :: generics :: Arr_u8_32 , key_purpose : u32 , rotation : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_encryption_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (contract_id) , key_purpose , rotation) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_path`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_path (is_testnet : bool , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut std :: os :: raw :: c_char { let obj = platform_mobile :: key_wallet :: application_session_authentication_path (is_testnet , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < std :: os :: raw :: c_char as ferment :: FFIConversionTo < String >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::key_wallet::application_session_authentication_private_key_from_seed`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_key_wallet_application_session_authentication_private_key_from_seed (is_testnet : bool , seed : * mut crate :: fermented :: generics :: Vec_u8 , identity_id : * mut crate :: fermented :: generics :: Arr_u8_32 , request_id : * mut crate :: fermented :: generics :: Arr_u8_32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: key_wallet :: application_session_authentication_private_key_from_seed (is_testnet , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (seed) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (identity_id) , < crate :: fermented :: generics :: Arr_u8_32 as ferment :: FFIConversionFrom < [u8 ; 32] >> :: ffi_from (request_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod token_purchase { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::token_purchase::submit_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_submit_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , approved_summary : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , signing_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: submit_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (approved_summary) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (signing_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::token_purchase::prepare_token_purchase_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_token_purchase_prepare_token_purchase_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , bytes : * mut crate :: fermented :: generics :: Vec_u8 , owner : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: token_purchase :: prepare_token_purchase_sdk (rust_sdk , < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (bytes) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (owner)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } } pub mod operators { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::operators::Value_eq`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_eq (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , b : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> bool { let obj = platform_mobile :: operators :: Value_eq (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a) , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (b)) ; obj } # [doc = "FFI-representation of the [`platform_mobile::operators::Value_hash`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_operators_Value_hash (a : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> i32 { let obj = platform_mobile :: operators :: Value_hash (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (a)) ; obj } } pub mod app_connect { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::app_connect::delete_document_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_delete_document_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , document_type : * mut std :: os :: raw :: c_char , identity_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String { let obj = platform_mobile :: app_connect :: delete_document_sdk (rust_sdk , < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (document) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (identity_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_document_Document_err_String as ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_current_contract_key_id_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_current_contract_key_id_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , purpose : u32) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_current_contract_key_id_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id) , purpose) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_owner_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_owner_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_owner_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Option_platform_value_types_identifier_Identifier_err_String as ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_contract_group_snapshot_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_contract_group_snapshot_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , group_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Vec_u8_err_String { let obj = platform_mobile :: app_connect :: fetch_contract_group_snapshot_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (group_id)) ; < crate :: fermented :: generics :: Result_ok_Vec_u8_err_String as ferment :: FFIConversionTo < Result < Vec < u8 > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::app_connect::fetch_platform_time_with_sdk`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_app_connect_fetch_platform_time_with_sdk (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , identity_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_u64_err_String { let obj = platform_mobile :: app_connect :: fetch_platform_time_with_sdk (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (identity_id)) ; < crate :: fermented :: generics :: Result_ok_u64_err_String as ferment :: FFIConversionTo < Result < u64 , String > >> :: ffi_to (obj) } } pub mod config { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::config::testnet_address_list`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_config_testnet_address_list () -> * mut crate :: fermented :: generics :: Vec_String { let obj = platform_mobile :: config :: testnet_address_list () ; < crate :: fermented :: generics :: Vec_String as ferment :: FFIConversionTo < Vec < String > >> :: ffi_to (obj) } } pub mod voting { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_contenders`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_contenders (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String { let obj = platform_mobile :: voting :: get_vote_contenders (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_Contenders_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_votes`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_votes (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: get_votes (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id)) ; < crate :: fermented :: generics :: Result_ok_Option_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_last_vote_from_masternode`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_last_vote_from_masternode (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , masternode_protxhash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , index_name : * mut std :: os :: raw :: c_char , index_values : * mut crate :: fermented :: generics :: Vec_platform_value_Value , document_type_name : * mut std :: os :: raw :: c_char , contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { let obj = platform_mobile :: voting :: get_last_vote_from_masternode (rust_sdk , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (masternode_protxhash) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (index_name) , < crate :: fermented :: generics :: Vec_platform_value_Value as ferment :: FFIConversionFrom < Vec < platform_value :: Value > >> :: ffi_from (index_values) , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (contract_id)) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_vote_polls`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_vote_polls (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , start_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , start_time_included : bool , end_time : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis , end_time_included : bool , limit : u16 , offset : u16 , order_ascending : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { let obj = platform_mobile :: voting :: get_vote_polls (rust_sdk , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (start_time) , start_time_included , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_TimestampMillis as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: TimestampMillis >> :: ffi_from (end_time) , end_time_included , limit , offset , order_ascending) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::get_contested_resources`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_get_contested_resources (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , document_type_name : * mut std :: os :: raw :: c_char , data_contract_id : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , limit : u16 , start_at : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , start_at_include : bool) -> * mut crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String { let obj = platform_mobile :: voting :: get_contested_resources (rust_sdk , < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (document_type_name) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (data_contract_id) , limit , < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from_opt (start_at) , start_at_include) ; < crate :: fermented :: generics :: Result_ok_drive_proof_verifier_types_ContestedResources_err_String as ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > >> :: ffi_to (obj) } # [doc = "FFI-representation of the [`platform_mobile::voting::put_vote_to_platform`]"] # [no_mangle] pub unsafe extern "C" fn platform_mobile_voting_put_vote_to_platform (rust_sdk : * mut platform_mobile :: sdk :: DashSdk , vote : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , voter_pro_tx_hash : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , voting_public_key : * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey , signer_context : usize , signer_callback : u64) -> * mut crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String { let obj = platform_mobile :: voting :: put_vote_to_platform (rust_sdk , < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (vote) , < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (voter_pro_tx_hash) , < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (voting_public_key) , signer_context , signer_callback) ; < crate :: fermented :: generics :: Result_ok_dpp_voting_votes_Vote_err_String as ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > >> :: ffi_to (obj) } } } pub mod drive_proof_verifier { use crate as dash_sdk_bindings ; pub mod proof { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod from_request { use crate as dash_sdk_bindings ; } pub mod error { use crate as dash_sdk_bindings ; } pub mod verify { use crate as dash_sdk_bindings ; # [cfg (test)] pub mod tests { use crate as dash_sdk_bindings ; } } pub mod types { use crate as dash_sdk_bindings ; # [doc = "FFI-representation of the [`Contenders`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Contenders { pub winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , pub contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , pub abstain_vote_tally : * mut u32 , pub lock_vote_tally : * mut u32 } impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Contenders) -> drive_proof_verifier :: types :: Contenders { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_from_opt (ffi_ref . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_from (ffi_ref . contenders) , abstain_vote_tally : ferment :: from_opt_primitive (ffi_ref . abstain_vote_tally) , lock_vote_tally : ferment :: from_opt_primitive (ffi_ref . lock_vote_tally) } } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Contenders > for drive_proof_verifier_types_Contenders { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Contenders) -> * const drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner : < crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo as ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) >> :: ffi_to_opt (obj . winner) , contenders : < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > >> :: ffi_to (obj . contenders) , abstain_vote_tally : ferment :: to_opt_primitive (obj . abstain_vote_tally) , lock_vote_tally : ferment :: to_opt_primitive (obj . lock_vote_tally) }) } } impl Drop for drive_proof_verifier_types_Contenders { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any_opt (ffi_ref . winner) ; ferment :: unbox_any (ffi_ref . contenders) ; ferment :: destroy_opt_primitive (ffi_ref . abstain_vote_tally) ; ferment :: destroy_opt_primitive (ffi_ref . lock_vote_tally) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_ctor < > (winner : * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo , contenders : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument , abstain_vote_tally : * mut u32 , lock_vote_tally : * mut u32) -> * mut drive_proof_verifier_types_Contenders { ferment :: boxed (drive_proof_verifier_types_Contenders { winner , contenders , abstain_vote_tally , lock_vote_tally }) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_destroy < > (ffi : * mut drive_proof_verifier_types_Contenders) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_get_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_winner < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { (* obj) . winner } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_contenders < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { (* obj) . contenders } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_abstain_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . abstain_vote_tally } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Contenders_set_lock_vote_tally < > (obj : * const drive_proof_verifier_types_Contenders) -> * mut u32 { (* obj) . lock_vote_tally } # [doc = "FFI-representation of the [`ResourceVotesByIdentity`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ResourceVotesByIdentity (* mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> drive_proof_verifier :: types :: ResourceVotesByIdentity { let ffi_ref = & * ffi ; < crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_from (ffi_ref . 0) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ResourceVotesByIdentity > for drive_proof_verifier_types_ResourceVotesByIdentity { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ResourceVotesByIdentity) -> * const drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (< crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > >> :: ffi_to (obj))) } } impl Drop for drive_proof_verifier_types_ResourceVotesByIdentity { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> * mut drive_proof_verifier_types_ResourceVotesByIdentity { ferment :: boxed (drive_proof_verifier_types_ResourceVotesByIdentity (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_destroy < > (ffi : * mut drive_proof_verifier_types_ResourceVotesByIdentity) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_get_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ResourceVotesByIdentity_set_0 < > (obj : * const drive_proof_verifier_types_ResourceVotesByIdentity) -> * mut crate :: fermented :: generics :: std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResource`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResource (* mut crate :: fermented :: types :: platform_value :: platform_value_Value) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResource) -> drive_proof_verifier :: types :: ContestedResource { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResource > for drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResource) -> * const drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (< crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionTo < platform_value :: Value >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut drive_proof_verifier_types_ContestedResource { ferment :: boxed (drive_proof_verifier_types_ContestedResource (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResource_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResource) -> * mut crate :: fermented :: types :: platform_value :: platform_value_Value { (* obj) . 0 } # [doc = "FFI-representation of the [`VotePollsGroupedByTimestamp`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_VotePollsGroupedByTimestamp (* mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> drive_proof_verifier :: types :: VotePollsGroupedByTimestamp { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp > for drive_proof_verifier_types_VotePollsGroupedByTimestamp { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: VotePollsGroupedByTimestamp) -> * const drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (< crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll as ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_VotePollsGroupedByTimestamp { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp { ferment :: boxed (drive_proof_verifier_types_VotePollsGroupedByTimestamp (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_destroy < > (ffi : * mut drive_proof_verifier_types_VotePollsGroupedByTimestamp) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_get_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_VotePollsGroupedByTimestamp_set_0 < > (obj : * const drive_proof_verifier_types_VotePollsGroupedByTimestamp) -> * mut crate :: fermented :: generics :: Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { (* obj) . 0 } # [doc = "FFI-representation of the [`Voters`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voters (* mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voters) -> drive_proof_verifier :: types :: Voters { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voters > for drive_proof_verifier_types_Voters { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voters) -> * const drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (< crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter as ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voters { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_ctor < > (o_0 : * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> * mut drive_proof_verifier_types_Voters { ferment :: boxed (drive_proof_verifier_types_Voters (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_destroy < > (ffi : * mut drive_proof_verifier_types_Voters) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_get_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voters_set_0 < > (obj : * const drive_proof_verifier_types_Voters) -> * mut crate :: fermented :: generics :: std_collections_BTreeSet_drive_proof_verifier_types_Voter { (* obj) . 0 } # [doc = "FFI-representation of the [`Voter`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_Voter (* mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_Voter) -> drive_proof_verifier :: types :: Voter { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: Voter > for drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: Voter) -> * const drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (< crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionTo < platform_value :: types :: identifier :: Identifier >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_ctor < > (o_0 : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier) -> * mut drive_proof_verifier_types_Voter { ferment :: boxed (drive_proof_verifier_types_Voter (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_destroy < > (ffi : * mut drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_get_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_Voter_set_0 < > (obj : * const drive_proof_verifier_types_Voter) -> * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier { (* obj) . 0 } # [doc = "FFI-representation of the [`ContestedResources`]"] # [repr (C)] # [derive (Clone)] pub struct drive_proof_verifier_types_ContestedResources (* mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) ; impl ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_from_const (ffi : * const drive_proof_verifier_types_ContestedResources) -> drive_proof_verifier :: types :: ContestedResources { let ffi_ref = & * ffi ; drive_proof_verifier :: types :: ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_from (ffi_ref . 0)) } } impl ferment :: FFIConversionTo < drive_proof_verifier :: types :: ContestedResources > for drive_proof_verifier_types_ContestedResources { unsafe fn ffi_to_const (obj : drive_proof_verifier :: types :: ContestedResources) -> * const drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (< crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource as ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > >> :: ffi_to (obj . 0))) } } impl Drop for drive_proof_verifier_types_ContestedResources { fn drop (& mut self) { unsafe { let ffi_ref = self ; ferment :: unbox_any (ffi_ref . 0) ; } } } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_ctor < > (o_0 : * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource) -> * mut drive_proof_verifier_types_ContestedResources { ferment :: boxed (drive_proof_verifier_types_ContestedResources (o_0)) } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_destroy < > (ffi : * mut drive_proof_verifier_types_ContestedResources) { ferment :: unbox_any (ffi) ; } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_get_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } # [no_mangle] pub unsafe extern "C" fn drive_proof_verifier_types_ContestedResources_set_0 < > (obj : * const drive_proof_verifier_types_ContestedResources) -> * mut crate :: fermented :: generics :: Vec_drive_proof_verifier_types_ContestedResource { (* obj) . 0 } } pub mod unproved { use crate as dash_sdk_bindings ; } } pub mod dapi_grpc { use crate as dash_sdk_bindings ; # [cfg (feature = "drive")] pub mod drive { use crate as dash_sdk_bindings ; } # [cfg (feature = "platform")] pub mod platform { use crate as dash_sdk_bindings ; } # [cfg (feature = "core")] pub mod core { use crate as dash_sdk_bindings ; } pub mod mock { use crate as dash_sdk_bindings ; } # [cfg (feature = "serde")] pub mod deserialization { use crate as dash_sdk_bindings ; } } } # [allow (clippy :: let_and_return , clippy :: suspicious_else_formatting , clippy :: redundant_field_names , dead_code , non_camel_case_types , non_snake_case , non_upper_case_globals , redundant_semicolons , unreachable_patterns , unused_braces , unused_imports , unused_parens , unused_qualifications , unused_unsafe , unused_variables)] pub mod generics { use crate as dash_sdk_bindings ; # [repr (C)] # [derive (Clone)] pub struct Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget } impl ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_from_const (ffi : * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > > for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { unsafe fn ffi_to_const (obj : Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >) -> * const Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget) -> * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { ferment :: boxed (Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_destroy (ffi : * mut Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_dpp_voting_vote_polls_VotePoll) -> Vec < dpp :: voting :: vote_polls :: VotePoll > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: voting :: vote_polls :: VotePoll > > for Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < dpp :: voting :: vote_polls :: VotePoll >) -> * const Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: vote_polls :: dpp_voting_vote_polls_VotePoll) -> * mut Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) -> Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI as ferment :: FFIConversionFrom < platform_mobile :: data_contracts :: DataContractFFI >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String > > for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_mobile :: data_contracts :: DataContractFFI > , String >) -> * const Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: data_contracts :: platform_mobile_data_contracts_DataContractFFI , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ferment :: boxed (Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String_destroy (ffi : * mut Result_ok_Option_platform_mobile_data_contracts_DataContractFFI_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) -> Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ResourceVotesByIdentity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String > > for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ResourceVotesByIdentity , String >) -> * const Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ResourceVotesByIdentity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ResourceVotesByIdentity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_36 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_from_const (ffi : * const Arr_u8_36) -> [u8 ; 36] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 36] > for Arr_u8_36 { unsafe fn ffi_to_const (obj : [u8 ; 36]) -> * const Arr_u8_36 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_36 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_36 { ferment :: boxed (Arr_u8_36 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_36_destroy (ffi : * mut Arr_u8_36) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_32 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_from_const (ffi : * const Arr_u8_32) -> [u8 ; 32] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 32] > for Arr_u8_32 { unsafe fn ffi_to_const (obj : [u8 ; 32]) -> * const Arr_u8_32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_32 { ferment :: boxed (Arr_u8_32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_32_destroy (ffi : * mut Arr_u8_32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , pub o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >)) -> * const Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: prelude :: dpp_prelude_TimestampMillis , o_1 : * mut crate :: fermented :: generics :: Vec_dpp_voting_vote_polls_VotePoll) -> * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_u8_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_u8 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_u8_err_String) -> Result < Vec < u8 > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_u8 as ferment :: FFIConversionFrom < Vec < u8 > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < u8 > , String > > for Result_ok_Vec_u8_err_String { unsafe fn ffi_to_const (obj : Result < Vec < u8 > , String >) -> * const Result_ok_Vec_u8_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_u8_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_u8 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_u8_err_String { ferment :: boxed (Result_ok_Vec_u8_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_u8_err_String_destroy (ffi : * mut Result_ok_Vec_u8_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) -> Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String > > for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: VotePollsGroupedByTimestamp , String >) -> * const Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_VotePollsGroupedByTimestamp , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_VotePollsGroupedByTimestamp_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_voting_votes_Vote_err_String) -> Result < dpp :: voting :: votes :: Vote , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: voting :: votes :: Vote , String > > for Result_ok_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: voting :: votes :: Vote , String >) -> * const Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_ContestedResources_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String) -> Result < drive_proof_verifier :: types :: ContestedResources , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: ContestedResources >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: ContestedResources , String > > for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: ContestedResources , String >) -> * const Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_ContestedResources_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResources , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_ContestedResources_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_ContestedResources_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_ContestedResources_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_identity_identity_Identity_err_String) -> Result < dpp :: identity :: identity :: Identity , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: identity :: identity :: Identity , String > > for Result_ok_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: identity :: identity :: Identity , String >) -> * const Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_KeyID { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_KeyID) -> Vec < dpp :: identity :: identity_public_key :: KeyID > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: KeyID > > for Vec_dpp_identity_identity_public_key_KeyID { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: KeyID >) -> * const Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_KeyID { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID) -> * mut Vec_dpp_identity_identity_public_key_KeyID { ferment :: boxed (Vec_dpp_identity_identity_public_key_KeyID { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_KeyID_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_KeyID) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_2 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_from_const (ffi : * const Arr_u8_2) -> [u8 ; 2] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 2] > for Arr_u8_2 { unsafe fn ffi_to_const (obj : [u8 ; 2]) -> * const Arr_u8_2 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_2 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_2 { ferment :: boxed (Arr_u8_2 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_2_destroy (ffi : * mut Arr_u8_2) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_document_Document { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document } impl ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_from_const (ffi : * const Vec_dpp_document_Document) -> Vec < dpp :: document :: Document > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: document :: Document > > for Vec_dpp_document_Document { unsafe fn ffi_to_const (obj : Vec < dpp :: document :: Document >) -> * const Vec_dpp_document_Document { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_document_Document { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document) -> * mut Vec_dpp_document_Document { ferment :: boxed (Vec_dpp_document_Document { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_document_Document_destroy (ffi : * mut Vec_dpp_document_Document) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u32 { pub count : usize , pub values : * mut u32 } impl ferment :: FFIConversionFrom < Vec < u32 > > for Vec_u32 { unsafe fn ffi_from_const (ffi : * const Vec_u32) -> Vec < u32 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u32 > > for Vec_u32 { unsafe fn ffi_to_const (obj : Vec < u32 >) -> * const Vec_u32 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u32 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u32_ctor (count : usize , values : * mut u32) -> * mut Vec_u32 { ferment :: boxed (Vec_u32 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u32_destroy (ffi : * mut Vec_u32) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String > > for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < Vec < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget > , String >) -> * const Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_Vec_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_u8 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < Vec < u8 > > for Vec_u8 { unsafe fn ffi_from_const (ffi : * const Vec_u8) -> Vec < u8 > { let ffi_ref = & * ffi ; ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < u8 > > for Vec_u8 { unsafe fn ffi_to_const (obj : Vec < u8 >) -> * const Vec_u8 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Vec_u8 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_u8_ctor (count : usize , values : * mut u8) -> * mut Vec_u8 { ferment :: boxed (Vec_u8 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_u8_destroy (ffi : * mut Vec_u8) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Arr_u8_20 { pub count : usize , pub values : * mut u8 } impl ferment :: FFIConversionFrom < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_from_const (ffi : * const Arr_u8_20) -> [u8 ; 20] { let ffi_ref = & * ffi ; let vec : Vec < u8 > = ferment :: from_primitive_group (ffi_ref . values , ffi_ref . count) ; vec . try_into () . unwrap () } } impl ferment :: FFIConversionTo < [u8 ; 20] > for Arr_u8_20 { unsafe fn ffi_to_const (obj : [u8 ; 20]) -> * const Arr_u8_20 { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_primitive_group (obj . into_iter ()) }) } } impl Drop for Arr_u8_20 { fn drop (& mut self) { unsafe { ferment :: unbox_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_ctor (count : usize , values : * mut u8) -> * mut Arr_u8_20 { ferment :: boxed (Arr_u8_20 { count , values }) } # [no_mangle] pub unsafe extern "C" fn Arr_u8_20_destroy (ffi : * mut Arr_u8_20) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_platform_value_types_identifier_Identifier_err_String { pub ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String) -> Result < Option < platform_value :: types :: identifier :: Identifier > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < platform_value :: types :: identifier :: Identifier > , String > > for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { unsafe fn ffi_to_const (obj : Result < Option < platform_value :: types :: identifier :: Identifier > , String >) -> * const Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_platform_value_types_identifier_Identifier_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ferment :: boxed (Result_ok_Option_platform_value_types_identifier_Identifier_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_platform_value_types_identifier_Identifier_err_String_destroy (ffi : * mut Result_ok_Option_platform_value_types_identifier_Identifier_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_u64_err_String { pub ok : * mut u64 , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_u64_err_String) -> Result < u64 , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | * o , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < u64 , String > > for Result_ok_u64_err_String { unsafe fn ffi_to_const (obj : Result < u64 , String >) -> * const Result_ok_u64_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_u64_err_String { fn drop (& mut self) { unsafe { ferment :: destroy_opt_primitive (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_ctor (ok : * mut u64 , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_u64_err_String { ferment :: boxed (Result_ok_u64_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_u64_err_String_destroy (ffi : * mut Result_ok_u64_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_drive_proof_verifier_types_Contenders_err_String { pub ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_drive_proof_verifier_types_Contenders_err_String) -> Result < drive_proof_verifier :: types :: Contenders , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders as ferment :: FFIConversionFrom < drive_proof_verifier :: types :: Contenders >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < drive_proof_verifier :: types :: Contenders , String > > for Result_ok_drive_proof_verifier_types_Contenders_err_String { unsafe fn ffi_to_const (obj : Result < drive_proof_verifier :: types :: Contenders , String >) -> * const Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_drive_proof_verifier_types_Contenders_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_ctor (ok : * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Contenders , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_drive_proof_verifier_types_Contenders_err_String { ferment :: boxed (Result_ok_drive_proof_verifier_types_Contenders_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_drive_proof_verifier_types_Contenders_err_String_destroy (ffi : * mut Result_ok_drive_proof_verifier_types_Contenders_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_voting_votes_Vote_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_voting_votes_Vote_err_String) -> Result < Option < dpp :: voting :: votes :: Vote > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: Vote >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: voting :: votes :: Vote > , String > > for Result_ok_Option_dpp_voting_votes_Vote_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: voting :: votes :: Vote > , String >) -> * const Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_voting_votes_Vote_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: voting :: votes :: dpp_voting_votes_Vote , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_voting_votes_Vote_err_String { ferment :: boxed (Result_ok_Option_dpp_voting_votes_Vote_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_voting_votes_Vote_err_String_destroy (ffi : * mut Result_ok_Option_dpp_voting_votes_Vote_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_platform_value_Value) -> Vec < platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < platform_value :: Value > > for Vec_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < platform_value :: Value >) -> * const Vec_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Vec_platform_value_Value { ferment :: boxed (Vec_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_platform_value_Value_destroy (ffi : * mut Vec_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll } impl ferment :: FFIConversionFrom < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) > > for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { unsafe fn ffi_to_const (obj : Vec < (dpp :: prelude :: TimestampMillis , Vec < dpp :: voting :: vote_polls :: VotePoll >) >) -> * const Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) -> * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { ferment :: boxed (Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll_destroy (ffi : * mut Vec_Tuple_dpp_prelude_TimestampMillis_Vec_dpp_voting_vote_polls_VotePoll) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_String_values_platform_value_Value { pub count : usize , pub keys : * mut * mut std :: os :: raw :: c_char , pub values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_String_values_platform_value_Value) -> std :: collections :: BTreeMap < String , platform_value :: Value > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o) , | o | < crate :: fermented :: types :: platform_value :: platform_value_Value as ferment :: FFIConversionFrom < platform_value :: Value >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < String , platform_value :: Value > > for std_collections_Map_keys_String_values_platform_value_Value { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < String , platform_value :: Value >) -> * const std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_String_values_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . keys , self . count , ferment :: unbox_string) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_ctor (count : usize , keys : * mut * mut std :: os :: raw :: c_char , values : * mut * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut std_collections_Map_keys_String_values_platform_value_Value { ferment :: boxed (std_collections_Map_keys_String_values_platform_value_Value { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_String_values_platform_value_Value_destroy (ffi : * mut std_collections_Map_keys_String_values_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_String { pub count : usize , pub values : * mut * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Vec < String > > for Vec_String { unsafe fn ffi_from_const (ffi : * const Vec_String) -> Vec < String > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < String > > for Vec_String { unsafe fn ffi_to_const (obj : Vec < String >) -> * const Vec_String { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr_composer (self . values , self . count , ferment :: unbox_string) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_String_ctor (count : usize , values : * mut * mut std :: os :: raw :: c_char) -> * mut Vec_String { ferment :: boxed (Vec_String { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_String_destroy (ffi : * mut Vec_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) -> Result < platform_mobile :: state_transition :: StateTransitionInfo , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo as ferment :: FFIConversionFrom < platform_mobile :: state_transition :: StateTransitionInfo >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: state_transition :: StateTransitionInfo , String > > for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: state_transition :: StateTransitionInfo , String >) -> * const Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: state_transition :: platform_mobile_state_transition_StateTransitionInfo , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ferment :: boxed (Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String_destroy (ffi : * mut Result_ok_platform_mobile_state_transition_StateTransitionInfo_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { pub o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , pub o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo } impl ferment :: FFIConversionFrom < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_from_const (ffi : * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) -> (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo) > for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { unsafe fn ffi_to_const (obj : (dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: ContestedDocumentVotePollWinnerInfo , dpp :: block :: block_info :: BlockInfo)) -> * const Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_ctor (o_0 : * mut crate :: fermented :: types :: dpp :: voting :: vote_info_storage :: contested_document_vote_poll_winner_info :: dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo , o_1 : * mut crate :: fermented :: types :: dpp :: block :: block_info :: dpp_block_block_info_BlockInfo) -> * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { ferment :: boxed (Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo_destroy (ffi : * mut Tuple_dpp_voting_vote_info_storage_contested_document_vote_poll_winner_info_ContestedDocumentVotePollWinnerInfo_dpp_block_block_info_BlockInfo) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote as ferment :: FFIConversionFrom < dpp :: voting :: votes :: resource_vote :: ResourceVote >> :: ffi_from_opt (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , Option < dpp :: voting :: votes :: resource_vote :: ResourceVote > >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_opt_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: votes :: resource_vote :: dpp_voting_votes_resource_vote_ResourceVote) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_Option_dpp_voting_votes_resource_vote_ResourceVote) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Option_dpp_identity_identity_Identity_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Option_dpp_identity_identity_Identity_err_String) -> Result < Option < dpp :: identity :: identity :: Identity > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity as ferment :: FFIConversionFrom < dpp :: identity :: identity :: Identity >> :: ffi_from_opt (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Option < dpp :: identity :: identity :: Identity > , String > > for Result_ok_Option_dpp_identity_identity_Identity_err_String { unsafe fn ffi_to_const (obj : Result < Option < dpp :: identity :: identity :: Identity > , String >) -> * const Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to_opt (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Option_dpp_identity_identity_Identity_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: identity :: identity :: dpp_identity_identity_Identity , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Option_dpp_identity_identity_Identity_err_String { ferment :: boxed (Result_ok_Option_dpp_identity_identity_Identity_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Option_dpp_identity_identity_Identity_err_String_destroy (ffi : * mut Result_ok_Option_dpp_identity_identity_Identity_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_conditions_WhereClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_conditions_WhereClause) -> Vec < drive :: query :: conditions :: WhereClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: conditions :: WhereClause > > for Vec_drive_query_conditions_WhereClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: conditions :: WhereClause >) -> * const Vec_drive_query_conditions_WhereClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_conditions_WhereClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: conditions :: drive_query_conditions_WhereClause) -> * mut Vec_drive_query_conditions_WhereClause { ferment :: boxed (Vec_drive_query_conditions_WhereClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_conditions_WhereClause_destroy (ffi : * mut Vec_drive_query_conditions_WhereClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { pub ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) -> Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget as ferment :: FFIConversionFrom < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String > > for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: fetch_identity :: IdentityKeyRemainingBudget , String >) -> * const Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_ctor (ok : * mut crate :: fermented :: types :: platform_mobile :: fetch_identity :: platform_mobile_fetch_identity_IdentityKeyRemainingBudget , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ferment :: boxed (Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String_destroy (ffi : * mut Result_ok_platform_mobile_fetch_identity_IdentityKeyRemainingBudget_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_dpp_document_Document_err_String) -> Result < dpp :: document :: Document , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: types :: dpp :: document :: dpp_document_Document as ferment :: FFIConversionFrom < dpp :: document :: Document >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < dpp :: document :: Document , String > > for Result_ok_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < dpp :: document :: Document , String >) -> * const Result_ok_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: types :: dpp :: document :: dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_dpp_document_Document_err_String { ferment :: boxed (Result_ok_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_proof_verifier_types_ContestedResource { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource } impl ferment :: FFIConversionFrom < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_from_const (ffi : * const Vec_drive_proof_verifier_types_ContestedResource) -> Vec < drive_proof_verifier :: types :: ContestedResource > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive_proof_verifier :: types :: ContestedResource > > for Vec_drive_proof_verifier_types_ContestedResource { unsafe fn ffi_to_const (obj : Vec < drive_proof_verifier :: types :: ContestedResource >) -> * const Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_proof_verifier_types_ContestedResource { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_ContestedResource) -> * mut Vec_drive_proof_verifier_types_ContestedResource { ferment :: boxed (Vec_drive_proof_verifier_types_ContestedResource { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_proof_verifier_types_ContestedResource_destroy (ffi : * mut Vec_drive_proof_verifier_types_ContestedResource) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , pub values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier as ferment :: FFIConversionFrom < platform_value :: types :: identifier :: Identifier >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument as ferment :: FFIConversionFrom < dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument > > for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < platform_value :: types :: identifier :: Identifier , dpp :: voting :: contender_structs :: contender :: ContenderWithSerializedDocument >) -> * const std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: platform_value :: types :: identifier :: platform_value_types_identifier_Identifier , values : * mut * mut crate :: fermented :: types :: dpp :: voting :: contender_structs :: contender :: dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) -> * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { ferment :: boxed (std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument_destroy (ffi : * mut std_collections_Map_keys_platform_value_types_identifier_Identifier_values_dpp_voting_contender_structs_contender_ContenderWithSerializedDocument) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) -> std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: fold_to_map (ffi_ref . count , ffi_ref . keys , ffi_ref . values , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: KeyID >> :: ffi_from (o) , | o | < crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < dpp :: identity :: identity_public_key :: IdentityPublicKey >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey > > for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : std :: collections :: BTreeMap < dpp :: identity :: identity_public_key :: KeyID , dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , keys : ferment :: to_complex_group (obj . keys () . cloned ()) , values : ferment :: to_complex_group (obj . values () . cloned ()) }) } } impl Drop for std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . keys , self . count) ; ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , keys : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_KeyID , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey { count , keys , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut std_collections_Map_keys_dpp_identity_identity_public_key_KeyID_values_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_dpp_identity_identity_public_key_IdentityPublicKey { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey } impl ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_from_const (ffi : * const Vec_dpp_identity_identity_public_key_IdentityPublicKey) -> Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > > for Vec_dpp_identity_identity_public_key_IdentityPublicKey { unsafe fn ffi_to_const (obj : Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey >) -> * const Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_dpp_identity_identity_public_key_IdentityPublicKey { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: dpp :: identity :: identity_public_key :: dpp_identity_identity_public_key_IdentityPublicKey) -> * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey { ferment :: boxed (Vec_dpp_identity_identity_public_key_IdentityPublicKey { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_dpp_identity_identity_public_key_IdentityPublicKey_destroy (ffi : * mut Vec_dpp_identity_identity_public_key_IdentityPublicKey) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Tuple_platform_value_Value_platform_value_Value { pub o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , pub o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value } impl ferment :: FFIConversionFrom < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Tuple_platform_value_Value_platform_value_Value) -> (platform_value :: Value , platform_value :: Value) { let ffi_ref = & * ffi ; (ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_0) , ferment :: FFIConversionFrom :: ffi_from (ffi_ref . o_1)) } } impl ferment :: FFIConversionTo < (platform_value :: Value , platform_value :: Value) > for Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : (platform_value :: Value , platform_value :: Value)) -> * const Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { o_0 : ferment :: FFIConversionTo :: ffi_to (obj . 0) , o_1 : ferment :: FFIConversionTo :: ffi_to (obj . 1) }) } } impl Drop for Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any (self . o_0) ; ferment :: unbox_any (self . o_1) ; } } } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_ctor (o_0 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value , o_1 : * mut crate :: fermented :: types :: platform_value :: platform_value_Value) -> * mut Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Tuple_platform_value_Value_platform_value_Value { o_0 , o_1 }) } # [no_mangle] pub unsafe extern "C" fn Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) -> Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey as ferment :: FFIConversionFrom < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String > > for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: identity :: identity_public_key :: IdentityPublicKey > , String >) -> * const Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_identity_identity_public_key_IdentityPublicKey , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ferment :: boxed (Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_identity_identity_public_key_IdentityPublicKey_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_Tuple_platform_value_Value_platform_value_Value { pub count : usize , pub values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value } impl ferment :: FFIConversionFrom < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_from_const (ffi : * const Vec_Tuple_platform_value_Value_platform_value_Value) -> Vec < (platform_value :: Value , platform_value :: Value) > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < (platform_value :: Value , platform_value :: Value) > > for Vec_Tuple_platform_value_Value_platform_value_Value { unsafe fn ffi_to_const (obj : Vec < (platform_value :: Value , platform_value :: Value) >) -> * const Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_Tuple_platform_value_Value_platform_value_Value { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_ctor (count : usize , values : * mut * mut crate :: fermented :: generics :: Tuple_platform_value_Value_platform_value_Value) -> * mut Vec_Tuple_platform_value_Value_platform_value_Value { ferment :: boxed (Vec_Tuple_platform_value_Value_platform_value_Value { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_Tuple_platform_value_Value_platform_value_Value_destroy (ffi : * mut Vec_Tuple_platform_value_Value_platform_value_Value) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_platform_mobile_sdk_DashSdk_err_String { pub ok : * mut platform_mobile :: sdk :: DashSdk , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_platform_mobile_sdk_DashSdk_err_String) -> Result < platform_mobile :: sdk :: DashSdk , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | (& * o) . clone () , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < platform_mobile :: sdk :: DashSdk , String > > for Result_ok_platform_mobile_sdk_DashSdk_err_String { unsafe fn ffi_to_const (obj : Result < platform_mobile :: sdk :: DashSdk , String >) -> * const Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: boxed (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_platform_mobile_sdk_DashSdk_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_ctor (ok : * mut platform_mobile :: sdk :: DashSdk , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_platform_mobile_sdk_DashSdk_err_String { ferment :: boxed (Result_ok_platform_mobile_sdk_DashSdk_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_platform_mobile_sdk_DashSdk_err_String_destroy (ffi : * mut Result_ok_platform_mobile_sdk_DashSdk_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Vec_drive_query_ordering_OrderClause { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause } impl ferment :: FFIConversionFrom < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_from_const (ffi : * const Vec_drive_query_ordering_OrderClause) -> Vec < drive :: query :: ordering :: OrderClause > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < Vec < drive :: query :: ordering :: OrderClause > > for Vec_drive_query_ordering_OrderClause { unsafe fn ffi_to_const (obj : Vec < drive :: query :: ordering :: OrderClause >) -> * const Vec_drive_query_ordering_OrderClause { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for Vec_drive_query_ordering_OrderClause { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive :: query :: ordering :: drive_query_ordering_OrderClause) -> * mut Vec_drive_query_ordering_OrderClause { ferment :: boxed (Vec_drive_query_ordering_OrderClause { count , values }) } # [no_mangle] pub unsafe extern "C" fn Vec_drive_query_ordering_OrderClause_destroy (ffi : * mut Vec_drive_query_ordering_OrderClause) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct Result_ok_Vec_dpp_document_Document_err_String { pub ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , pub error : * mut std :: os :: raw :: c_char } impl ferment :: FFIConversionFrom < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_from_const (ffi : * const Result_ok_Vec_dpp_document_Document_err_String) -> Result < Vec < dpp :: document :: Document > , String > { let ffi_ref = & * ffi ; ferment :: fold_to_result (ffi_ref . ok , | o | < crate :: fermented :: generics :: Vec_dpp_document_Document as ferment :: FFIConversionFrom < Vec < dpp :: document :: Document > >> :: ffi_from (o) , ffi_ref . error , | o | < std :: os :: raw :: c_char as ferment :: FFIConversionFrom < String >> :: ffi_from (o)) } } impl ferment :: FFIConversionTo < Result < Vec < dpp :: document :: Document > , String > > for Result_ok_Vec_dpp_document_Document_err_String { unsafe fn ffi_to_const (obj : Result < Vec < dpp :: document :: Document > , String >) -> * const Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed ({ let (ok , error) = ferment :: to_result (obj , | o | ferment :: FFIConversionTo :: ffi_to (o) , | o | ferment :: FFIConversionTo :: ffi_to (o)) ; Self { ok , error } }) } } impl Drop for Result_ok_Vec_dpp_document_Document_err_String { fn drop (& mut self) { unsafe { ferment :: unbox_any_opt (self . ok) ; ferment :: unbox_any_opt (self . error) ; } } } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_ctor (ok : * mut crate :: fermented :: generics :: Vec_dpp_document_Document , error : * mut std :: os :: raw :: c_char) -> * mut Result_ok_Vec_dpp_document_Document_err_String { ferment :: boxed (Result_ok_Vec_dpp_document_Document_err_String { ok , error }) } # [no_mangle] pub unsafe extern "C" fn Result_ok_Vec_dpp_document_Document_err_String_destroy (ffi : * mut Result_ok_Vec_dpp_document_Document_err_String) { ferment :: unbox_any (ffi) ; } # [repr (C)] # [derive (Clone)] pub struct std_collections_BTreeSet_drive_proof_verifier_types_Voter { pub count : usize , pub values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter } impl ferment :: FFIConversionFrom < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_from_const (ffi : * const std_collections_BTreeSet_drive_proof_verifier_types_Voter) -> std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > { let ffi_ref = & * ffi ; ferment :: from_complex_group (ffi_ref . values , ffi_ref . count) } } impl ferment :: FFIConversionTo < std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter > > for std_collections_BTreeSet_drive_proof_verifier_types_Voter { unsafe fn ffi_to_const (obj : std :: collections :: BTreeSet < drive_proof_verifier :: types :: Voter >) -> * const std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (Self { count : obj . len () , values : ferment :: to_complex_group (obj . into_iter ()) }) } } impl Drop for std_collections_BTreeSet_drive_proof_verifier_types_Voter { fn drop (& mut self) { unsafe { ferment :: unbox_any_vec_ptr (self . values , self . count) ; } } } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_ctor (count : usize , values : * mut * mut crate :: fermented :: types :: drive_proof_verifier :: types :: drive_proof_verifier_types_Voter) -> * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter { ferment :: boxed (std_collections_BTreeSet_drive_proof_verifier_types_Voter { count , values }) } # [no_mangle] pub unsafe extern "C" fn std_collections_BTreeSet_drive_proof_verifier_types_Voter_destroy (ffi : * mut std_collections_BTreeSet_drive_proof_verifier_types_Voter) { ferment :: unbox_any (ffi) ; } } \ No newline at end of file diff --git a/dash-sdk-java/src/main/swig/key_wallet.i b/dash-sdk-java/src/main/swig/key_wallet.i index 961377ca..39b21c8a 100644 --- a/dash-sdk-java/src/main/swig/key_wallet.i +++ b/dash-sdk-java/src/main/swig/key_wallet.i @@ -1,8 +1,10 @@ %rename(applicationSessionAuthenticationPath) platform_mobile_key_wallet_application_session_authentication_path(bool is_testnet, Arr_u8_32 *identity_id, Arr_u8_32 *request_id); %rename(applicationSessionAuthenticationPrivateKeyFromSeed) platform_mobile_key_wallet_application_session_authentication_private_key_from_seed(bool is_testnet, Vec_u8 *seed, Arr_u8_32 *identity_id, Arr_u8_32 *request_id); %rename(applicationEncryptionPrivateKeyFromSeed) platform_mobile_key_wallet_application_encryption_private_key_from_seed; +%rename(applicationEncryptionLegacyPrivateKeyFromSeed) platform_mobile_key_wallet_application_encryption_legacy_private_key_from_seed; %newobject platform_mobile_key_wallet_application_session_authentication_private_key_from_seed; %newobject platform_mobile_key_wallet_application_encryption_private_key_from_seed; +%newobject platform_mobile_key_wallet_application_encryption_legacy_private_key_from_seed; %extend Result_ok_Vec_u8_err_String { ~Result_ok_Vec_u8_err_String() { diff --git a/dpp/src/main/java/org/dashj/platform/dpp/identity/ApplicationKeyDerivation.kt b/dpp/src/main/java/org/dashj/platform/dpp/identity/ApplicationKeyDerivation.kt index 8e19f971..a1a70d01 100644 --- a/dpp/src/main/java/org/dashj/platform/dpp/identity/ApplicationKeyDerivation.kt +++ b/dpp/src/main/java/org/dashj/platform/dpp/identity/ApplicationKeyDerivation.kt @@ -6,6 +6,8 @@ import org.dashj.platform.sdk.dashsdk /** DIP-13 application keys. Testnet and all devnets use the non-mainnet coin type. */ object ApplicationKeyDerivation { + private const val ROTATION_LIMIT = 1L shl 31 + /** The caller supplies the request leaf (v2: hash256(appEphPub || bindingIndex)). */ fun sessionAuthentication( seed: ByteArray, identityId: ByteArray, requestLeaf: ByteArray, isMainnet: Boolean @@ -13,12 +15,36 @@ object ApplicationKeyDerivation { !isMainnet, seed, identityId, requestLeaf )) - /** Rotation-zero key for ENCRYPTION or DECRYPTION, bound to the app contract. */ + /** + * Key for ENCRYPTION or DECRYPTION, bound to the app contract, at + * `m/9'/coin'/5'/7'/0'/identityId'/contractId'/purpose'/rotation'` (DIP-13). + * New keys use `rotation = 0`; `rotation` is a hardened 31-bit index (0 until 2^31). + */ fun encryption( - seed: ByteArray, identityId: ByteArray, contractId: ByteArray, purpose: Purpose, isMainnet: Boolean + seed: ByteArray, + identityId: ByteArray, + contractId: ByteArray, + purpose: Purpose, + rotation: Long, + isMainnet: Boolean ): ByteArray { require(purpose == Purpose.ENCRYPTION || purpose == Purpose.DECRYPTION) + require(rotation in 0 until ROTATION_LIMIT) { "rotation must be below 2^31" } return privateKey(dashsdk.applicationEncryptionPrivateKeyFromSeed( + !isMainnet, seed, identityId, contractId, purpose.swigValue().toLong(), rotation + )) + } + + /** + * Key at the pre-rotation path `m/9'/coin'/5'/7'/0'/identityId'/contractId'/purpose'`. + * Only for recognising keys that wallets registered on testnet/devnet before DIP-13 added + * the rotation level. Never use it to derive new keys: use [encryption] instead. + */ + fun legacyEncryptionWithoutRotation( + seed: ByteArray, identityId: ByteArray, contractId: ByteArray, purpose: Purpose, isMainnet: Boolean + ): ByteArray { + require(purpose == Purpose.ENCRYPTION || purpose == Purpose.DECRYPTION) + return privateKey(dashsdk.applicationEncryptionLegacyPrivateKeyFromSeed( !isMainnet, seed, identityId, contractId, purpose.swigValue().toLong() )) } diff --git a/dpp/src/test/kotlin/org/dashj/platform/dpp/identity/AppConnectKeyTest.kt b/dpp/src/test/kotlin/org/dashj/platform/dpp/identity/AppConnectKeyTest.kt index c776d58d..6b07087c 100644 --- a/dpp/src/test/kotlin/org/dashj/platform/dpp/identity/AppConnectKeyTest.kt +++ b/dpp/src/test/kotlin/org/dashj/platform/dpp/identity/AppConnectKeyTest.kt @@ -78,22 +78,60 @@ class AppConnectKeyTest { val originalSeed = seed.copyOf() val identityId = ByteArray(32) { 1 } val contractId = ByteArray(32) { 2 } - val encryption = ApplicationKeyDerivation.encryption( - seed, identityId, contractId, Purpose.ENCRYPTION, false - ) + fun derive(purpose: Purpose = Purpose.ENCRYPTION, rotation: Long = 0, isMainnet: Boolean = false) = + ApplicationKeyDerivation.encryption(seed, identityId, contractId, purpose, rotation, isMainnet) + val encryption = derive() assertEquals(32, encryption.size) - assertArrayEquals(encryption, ApplicationKeyDerivation.encryption( - seed, identityId, contractId, Purpose.ENCRYPTION, false - )) - assertFalse(encryption.contentEquals(ApplicationKeyDerivation.encryption( - seed, identityId, contractId, Purpose.DECRYPTION, false - ))) - assertFalse(encryption.contentEquals(ApplicationKeyDerivation.encryption( - seed, identityId, contractId, Purpose.ENCRYPTION, true - ))) + assertArrayEquals(encryption, derive()) + assertFalse(encryption.contentEquals(derive(Purpose.DECRYPTION))) + assertFalse(encryption.contentEquals(derive(isMainnet = true))) + assertFalse(encryption.contentEquals(derive(rotation = 1))) assertFalse(encryption.contentEquals(ApplicationKeyDerivation.sessionAuthentication( seed, identityId, contractId, false ))) assertArrayEquals(originalSeed, seed) } + + @Test + fun legacyEncryptionKeyIsTheRotationlessPathAndNeverEqualsARotatedKey() { + val seed = ByteArray(32) { 42 } + val originalSeed = seed.copyOf() + val identityId = ByteArray(32) { 1 } + val contractId = ByteArray(32) { 2 } + val legacy = ApplicationKeyDerivation.legacyEncryptionWithoutRotation( + seed, identityId, contractId, Purpose.ENCRYPTION, false + ) + assertEquals(32, legacy.size) + assertArrayEquals(legacy, ApplicationKeyDerivation.legacyEncryptionWithoutRotation( + seed, identityId, contractId, Purpose.ENCRYPTION, false + )) + for (rotation in listOf(0L, 1L, (1L shl 31) - 1)) { + assertFalse(legacy.contentEquals(ApplicationKeyDerivation.encryption( + seed, identityId, contractId, Purpose.ENCRYPTION, rotation, false + ))) + } + assertThrows(IllegalArgumentException::class.java) { + ApplicationKeyDerivation.legacyEncryptionWithoutRotation( + seed, identityId, contractId, Purpose.AUTHENTICATION, false + ) + } + assertArrayEquals(originalSeed, seed) + } + + @Test + fun encryptionRotationMustFitIn31Bits() { + val seed = ByteArray(32) { 42 } + val identityId = ByteArray(32) { 1 } + val contractId = ByteArray(32) { 2 } + for (rotation in listOf(-1L, 1L shl 31, 1L shl 32)) { + assertThrows(IllegalArgumentException::class.java) { + ApplicationKeyDerivation.encryption( + seed, identityId, contractId, Purpose.ENCRYPTION, rotation, false + ) + } + } + assertEquals(32, ApplicationKeyDerivation.encryption( + seed, identityId, contractId, Purpose.ENCRYPTION, (1L shl 31) - 1, false + ).size) + } } diff --git a/platform-mobile/src/key_wallet.rs b/platform-mobile/src/key_wallet.rs index 974e2acb..16c54ad3 100644 --- a/platform-mobile/src/key_wallet.rs +++ b/platform-mobile/src/key_wallet.rs @@ -65,12 +65,17 @@ pub fn application_session_authentication_private_key_from_seed( result } -fn application_encryption_derivation_path( +/// The DIP-13 rotation level is a hardened 31-bit index, so it must be below 2^31. +const APPLICATION_ROTATION_LIMIT: u32 = 1 << 31; + +/// Builds `m/9'/coin'/5'/7'/0'/identityId'/contractId'/purpose'`, the part of the +/// application encryption path shared by the rotation-aware and legacy derivations. +fn application_encryption_base_path( is_testnet: bool, identity_id: [u8; 32], contract_id: [u8; 32], key_purpose: u32, -) -> Result<(Network, DerivationPath), String> { +) -> Result<(Network, Vec), String> { if key_purpose != 1 && key_purpose != 2 { return Err("Application key purpose must be ENCRYPTION (1) or DECRYPTION (2)".into()); } @@ -79,7 +84,7 @@ fn application_encryption_derivation_path( } else { Network::Mainnet }; - let path = DerivationPath::from(vec![ + let path = vec![ ChildNumber::Hardened { index: 9 }, ChildNumber::Hardened { index: if is_testnet { 1 } else { 5 }, @@ -90,12 +95,58 @@ fn application_encryption_derivation_path( ChildNumber::Hardened256 { index: identity_id }, ChildNumber::Hardened256 { index: contract_id }, ChildNumber::Hardened { index: key_purpose }, - ]); + ]; Ok((network, path)) } -/// DIP-13 rotation-zero application key. Pass `true` for every non-mainnet network. -/// `key_purpose` is the Platform ENCRYPTION (1) or DECRYPTION (2) purpose. +/// `m/9'/coin'/5'/7'/0'/identityId'/contractId'/purpose'/rotation'` +fn application_encryption_derivation_path( + is_testnet: bool, + identity_id: [u8; 32], + contract_id: [u8; 32], + key_purpose: u32, + rotation: u32, +) -> Result<(Network, DerivationPath), String> { + let (network, mut path) = + application_encryption_base_path(is_testnet, identity_id, contract_id, key_purpose)?; + if rotation >= APPLICATION_ROTATION_LIMIT { + return Err("Application key rotation must be below 2^31".into()); + } + path.push(ChildNumber::Hardened { index: rotation }); + Ok((network, DerivationPath::from(path))) +} + +/// `m/9'/coin'/5'/7'/0'/identityId'/contractId'/purpose'`, without the rotation level. +fn application_encryption_legacy_derivation_path( + is_testnet: bool, + identity_id: [u8; 32], + contract_id: [u8; 32], + key_purpose: u32, +) -> Result<(Network, DerivationPath), String> { + let (network, path) = + application_encryption_base_path(is_testnet, identity_id, contract_id, key_purpose)?; + Ok((network, DerivationPath::from(path))) +} + +fn derive_private_key( + seed: &mut [u8], + derivation: Result<(Network, DerivationPath), String>, +) -> Result, String> { + let result = derivation.and_then(|(network, path)| { + path.derive_priv_ecdsa_for_master_seed(seed, network) + .map(|key| key.private_key.secret_bytes().to_vec()) + .map_err(|e| e.to_string()) + }); + seed.fill(0); + result +} + +/// Derives the DIP-13 application encryption key at +/// `m/9'/coin'/5'/7'/0'/identityId'/contractId'/purpose'/rotation'`. +/// +/// Pass `true` for every non-mainnet network. `key_purpose` is the Platform +/// ENCRYPTION (1) or DECRYPTION (2) purpose. `rotation` is a hardened 31-bit +/// index (below 2^31); new keys start at rotation 0. #[ferment_macro::export] pub fn application_encryption_private_key_from_seed( is_testnet: bool, @@ -103,40 +154,207 @@ pub fn application_encryption_private_key_from_seed( identity_id: [u8; 32], contract_id: [u8; 32], key_purpose: u32, + rotation: u32, ) -> Result, String> { let mut seed = seed; - let result = - application_encryption_derivation_path(is_testnet, identity_id, contract_id, key_purpose) - .and_then(|(network, path)| { - path.derive_priv_ecdsa_for_master_seed(&seed, network) - .map(|key| key.private_key.secret_bytes().to_vec()) - .map_err(|e| e.to_string()) - }); - seed.fill(0); - result + derive_private_key( + &mut seed, + application_encryption_derivation_path( + is_testnet, + identity_id, + contract_id, + key_purpose, + rotation, + ), + ) +} + +/// Derives the pre-rotation application encryption key at +/// `m/9'/coin'/5'/7'/0'/identityId'/contractId'/purpose'` (no rotation level). +/// +/// Only for recognising keys that wallets registered on testnet/devnet before +/// DIP-13 gained the rotation level. Never use it to derive new keys: new keys +/// must go through `application_encryption_private_key_from_seed`. +#[ferment_macro::export] +pub fn application_encryption_legacy_private_key_from_seed( + is_testnet: bool, + seed: Vec, + identity_id: [u8; 32], + contract_id: [u8; 32], + key_purpose: u32, +) -> Result, String> { + let mut seed = seed; + derive_private_key( + &mut seed, + application_encryption_legacy_derivation_path( + is_testnet, + identity_id, + contract_id, + key_purpose, + ), + ) } #[cfg(test)] mod tests { use super::*; + use dashcore::secp256k1::{PublicKey, Secp256k1, SecretKey}; + use key_wallet::Mnemonic; + + const MNEMONIC: &str = + "abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about"; + + fn abandon_seed() -> Vec { + Mnemonic::from_phrase(MNEMONIC) + .unwrap() + .to_seed("") + .to_vec() + } + + fn public_key_hex(private_key: &[u8]) -> String { + let secret = SecretKey::from_slice(private_key).unwrap(); + hex::encode(PublicKey::from_secret_key(&Secp256k1::new(), &secret).serialize()) + } + + fn ids_0x35_0x6b() -> ([u8; 32], [u8; 32]) { + ([0x35; 32], [0x6b; 32]) + } + + fn ids_asc_desc() -> ([u8; 32], [u8; 32]) { + ( + core::array::from_fn(|i| i as u8), + core::array::from_fn(|i| 0xff - i as u8), + ) + } + + fn rotated(ids: ([u8; 32], [u8; 32]), purpose: u32, rotation: u32) -> String { + public_key_hex( + &application_encryption_private_key_from_seed( + false, + abandon_seed(), + ids.0, + ids.1, + purpose, + rotation, + ) + .unwrap(), + ) + } + + fn legacy(ids: ([u8; 32], [u8; 32]), purpose: u32) -> String { + public_key_hex( + &application_encryption_legacy_private_key_from_seed( + false, + abandon_seed(), + ids.0, + ids.1, + purpose, + ) + .unwrap(), + ) + } + + #[test] + fn rotation_level_vectors_on_mainnet() { + assert_eq!( + rotated(ids_0x35_0x6b(), 1, 0), + "031a882c119e2b1f8e0349b444d877afa2599efeef49a26930fd25518cb6e9d57a" + ); + assert_eq!( + rotated(ids_0x35_0x6b(), 1, 1), + "03d0f6f0f48d968b9554d8e7fe467d7135bacf29d5c4994ca593bd10ebeed696f6" + ); + assert_eq!( + rotated(ids_asc_desc(), 1, 0), + "02dfed57ddaaea8c0758e8da44513520038eb8d6b0b92109953c14d6ab1087259b" + ); + assert_eq!( + rotated(ids_asc_desc(), 2, 0), + "020bcde800f41ad1f924477a9502f111445224cc9ab70114ae4e5099ba02bdd034" + ); + assert_eq!( + rotated(ids_asc_desc(), 2, 1), + "021b97869c21933673076a938337c28848c8bf8094bbe6883e3a4acbf33c639072" + ); + } + + #[test] + fn legacy_no_rotation_vectors_on_mainnet() { + assert_eq!( + legacy(ids_0x35_0x6b(), 1), + "03e989de1b62f137231cc06659c810c17100becd1f5e23d5710faa7602769fe434" + ); + assert_eq!( + legacy(ids_asc_desc(), 1), + "03c4e462229f176595ec17e28e9096d3cfbc42496fb8ed4d48f8f58355d6105aa9" + ); + assert_eq!( + legacy(ids_asc_desc(), 2), + "031fd0a3cfc01bebb89d43c2e12a6321c37ebdacb62c09495899e5b65a24fa5c99" + ); + } + + #[test] + fn rotation_appends_a_hardened_level_to_the_legacy_path() { + let (_, legacy_path) = + application_encryption_legacy_derivation_path(false, [1; 32], [2; 32], 1).unwrap(); + let (_, rotated_path) = + application_encryption_derivation_path(false, [1; 32], [2; 32], 1, 7).unwrap(); + assert_eq!(rotated_path.len(), legacy_path.len() + 1); + assert_eq!(&rotated_path[..legacy_path.len()], &legacy_path[..]); + assert_eq!( + rotated_path[legacy_path.len()], + ChildNumber::Hardened { index: 7 } + ); + } #[test] - fn application_keys_separate_networks_purposes_and_contracts() { - let derive = |testnet, contract, purpose| { + fn rotation_must_fit_in_31_bits() { + let derive = |rotation| { + application_encryption_private_key_from_seed( + false, + vec![42; 32], + [1; 32], + [2; 32], + 1, + rotation, + ) + }; + assert!(derive((1 << 31) - 1).is_ok()); + assert!(derive(1 << 31).is_err()); + assert!(derive(u32::MAX).is_err()); + } + + #[test] + fn application_keys_separate_networks_purposes_contracts_and_rotations() { + let derive = |testnet, contract, purpose, rotation| { application_encryption_private_key_from_seed( testnet, vec![42; 32], [1; 32], contract, purpose, + rotation, ) .unwrap() }; - let encryption = derive(true, [2; 32], 1); - assert_eq!(encryption, derive(true, [2; 32], 1)); - assert_ne!(encryption, derive(false, [2; 32], 1)); - assert_ne!(encryption, derive(true, [2; 32], 2)); - assert_ne!(encryption, derive(true, [3; 32], 1)); + let encryption = derive(true, [2; 32], 1, 0); + assert_eq!(encryption, derive(true, [2; 32], 1, 0)); + assert_ne!(encryption, derive(false, [2; 32], 1, 0)); + assert_ne!(encryption, derive(true, [2; 32], 2, 0)); + assert_ne!(encryption, derive(true, [3; 32], 1, 0)); + assert_ne!(encryption, derive(true, [2; 32], 1, 1)); + assert_ne!( + encryption, + application_encryption_legacy_private_key_from_seed( + true, + vec![42; 32], + [1; 32], + [2; 32], + 1 + ) + .unwrap() + ); assert_ne!( encryption, application_session_authentication_private_key_from_seed( @@ -147,13 +365,24 @@ mod tests { ) .unwrap() ); - assert!(application_encryption_private_key_from_seed( - true, - vec![42; 32], - [1; 32], - [2; 32], - 0 - ) - .is_err()); + for purpose in [0, 3] { + assert!(application_encryption_private_key_from_seed( + true, + vec![42; 32], + [1; 32], + [2; 32], + purpose, + 0 + ) + .is_err()); + assert!(application_encryption_legacy_private_key_from_seed( + true, + vec![42; 32], + [1; 32], + [2; 32], + purpose + ) + .is_err()); + } } } From 3b305555e04b7eb6c74cdd05f2d06df30a5e78c6 Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Thu, 29 Oct 2026 11:28:16 -0700 Subject: [PATCH 19/21] fix: sync bindings lockfile with 5.0.1 --- dash-sdk-bindings/Cargo.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dash-sdk-bindings/Cargo.lock b/dash-sdk-bindings/Cargo.lock index dcf0b81d..367fc4af 100644 --- a/dash-sdk-bindings/Cargo.lock +++ b/dash-sdk-bindings/Cargo.lock @@ -947,7 +947,7 @@ dependencies = [ [[package]] name = "dash-sdk-bindings" -version = "4.0.1" +version = "5.0.1" dependencies = [ "cbindgen 0.26.0", "dash-sdk", From bb3eeae17cccfbd7d70ae1d077770e19e8b36ebc Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Thu, 29 Oct 2026 20:34:20 -0700 Subject: [PATCH 20/21] Forward declare ValueMap independently of generated header order Declare platform_value_value_map_ValueMap before including Ferment's generated header. This fixes the CI compile failure when Value is emitted before ValueMap without changing ABI or Platform versions. Add a native header-order regression. Verified the original and reordered generated headers, a clean C++ rebuild, and seven JNI ValueTest tests. --- dash-sdk-java/src/main/cpp/config.h | 4 +++- .../src/test/cpp/value_map_header_order_test.cpp | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 dash-sdk-java/src/test/cpp/value_map_header_order_test.cpp diff --git a/dash-sdk-java/src/main/cpp/config.h b/dash-sdk-java/src/main/cpp/config.h index bff8beef..9866a7e8 100644 --- a/dash-sdk-java/src/main/cpp/config.h +++ b/dash-sdk-java/src/main/cpp/config.h @@ -9,6 +9,8 @@ struct platform_mobile_MyValue; struct platform_mobile_MyValueMap; struct platform_value_Value; struct platform_value_ValueMap; +// Generated definitions may place Value before the map it points to. +struct platform_value_value_map_ValueMap; struct Vec_platform_value_Value; extern JavaVM* javaVM; @@ -41,4 +43,4 @@ struct platform_mobile_config_EntryPoint; #define Value platform_value_Value -#endif \ No newline at end of file +#endif diff --git a/dash-sdk-java/src/test/cpp/value_map_header_order_test.cpp b/dash-sdk-java/src/test/cpp/value_map_header_order_test.cpp new file mode 100644 index 00000000..4f5b7c23 --- /dev/null +++ b/dash-sdk-java/src/test/cpp/value_map_header_order_test.cpp @@ -0,0 +1,16 @@ +#include +#include +#include "config.h" + +// The map type must be known even when Ferment emits Value before ValueMap. +struct ValueMapBeforeGeneratedHeader { + platform_value_value_map_ValueMap *value; +}; + +#include "../../../../dash-sdk-bindings/target/include/dash_sdk_bindings.h" +#include + +static_assert(std::is_same_v); + +int main() {} From ebf32c472db678259a0a42eba5c5380f29529a81 Mon Sep 17 00:00:00 2001 From: HashEngineering Date: Wed, 4 Nov 2026 10:15:33 -0800 Subject: [PATCH 21/21] chore: prepare 5.0.1 Maven Central release --- build.gradle | 4 ++-- dash-sdk-android/src/main/rust/Cargo.lock | 2 +- dash-sdk-android/src/main/rust/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 301bc4a4..763deed3 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ buildscript { - ext.version = '5.0.1-SNAPSHOT' + ext.version = '5.0.1' ext.kotlin_version = '2.1.20' - ext.dashj_version = '24.0.0-20261024.220449-1' + ext.dashj_version = '24.0.0' repositories { google() // Required for Android library and application projects mavenCentral() diff --git a/dash-sdk-android/src/main/rust/Cargo.lock b/dash-sdk-android/src/main/rust/Cargo.lock index 9bb9960b..d58bc00c 100644 --- a/dash-sdk-android/src/main/rust/Cargo.lock +++ b/dash-sdk-android/src/main/rust/Cargo.lock @@ -976,7 +976,7 @@ dependencies = [ [[package]] name = "dash-sdk-bindings" -version = "4.0.1" +version = "5.0.1" dependencies = [ "cbindgen 0.26.0", "dash-sdk", diff --git a/dash-sdk-android/src/main/rust/Cargo.toml b/dash-sdk-android/src/main/rust/Cargo.toml index b4698451..435432b7 100644 --- a/dash-sdk-android/src/main/rust/Cargo.toml +++ b/dash-sdk-android/src/main/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "dash-sdk-bindings" -version = "4.0.1" +version = "5.0.1" edition = "2021" [dependencies]